Edited at

ssh パスワードなし認証

More than 1 year has passed since last update.


鍵作成

ssh-keygen -f ~/.ssh/id_rsa.remote

全部空リターン


公開鍵をリモートサーバに追加 †

remote$ cat id_rsa.remote.pub >> ~/.ssh/authorized_keys

remote$ chmod go-rwx ~/.ssh/authorized_keys


リモートサーバで遠隔実行 †

ssh -i ~/.ssh/id_rsa.remote remote ls