sshキー†
キーの生成†
$ 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†
ssh で接続できないとき†
- デバッグモードで接続してみる
$ ssh -vvv ${REMOTE_HOST}
- ログを見てみる(要管理者権限)
$ less /var/log/auth.log
Links†