#topicpath //////////////////////////////////////////////////////////////////////////////// * 目次 [#x5ab1185] #contents(); //////////////////////////////////////////////////////////////////////////////// * sshキー [#vfeba3cb] //============================================================================== ** キーの生成 [#q8697dd5] $ ssh-keygen -C account@example.com -f .ssh/account@example.com.key Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in .ssh/account@example.com.key. Your public key has been saved in .ssh/account@example.com.key.pub. The key fingerprint is: ba:53:a5:59:8b:97:18:f4:d3:d3:08:a1:47:35:25:1d account@example.com The key's randomart image is: +---[RSA 2048]----+ | oo+oE. | | .o. o. | | ....o o | | ..= + . | | SO + . | | .* + | | .. . | | .. | | .. | +-----------------+ $ //============================================================================== ** ssh-agent / ssh-add [#s2cd56ab] - ssh-agent と ssh-add を用いてセッションを維持し、そこではパスフレーズを毎回入力しなくても良いようにする $ ssh-agent bash $ ssh-add ~/.ssh/<ssh-key-file> Enter passphrase for ${HOME}/.ssh/<ssh-key-file>: Identity added: ${HOME}/.ssh/<ssh-key-file> (${HOME}/.ssh/<ssh-key-file>) $ //////////////////////////////////////////////////////////////////////////////// * Links [#b112913e]