LoginSignup
1
2

More than 5 years have passed since last update.

ssh パスワードなし認証

Last updated at Posted at 2017-11-09

鍵作成

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

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2