ssh
ssh の鍵はどこに保存するべきか?
Permissions of private key
クライアント側鍵生成
サーバー設定
$ ssh-keygen -t ed25519 -f ~/.ssh/<file name>
$ ssh-copy-id -i ~/.ssh/<file name>.pub -p <port> username@remote-server.org
ssh server 側で password login を許可しておく必要がある
On mac we can use keychain as password store
暗号化していない鍵をパスフレーズで保護するには
$ ssh-keygen -p -f path/to/key
鍵のパーミッションを厳しくする
$ chomod 600
ssh-agent
タイムアウトを防ぐには
ServerAliveInterval や ServerAliveCountMax が使える
tcp が通る環境であれば、TCPKeepAliveもある
Key managing at organization