Help us understand the problem. What is going on with this article?

パスワードなしのssh設定方法

More than 5 years have passed since last update.

1.passwprdなしの鍵生成
ssh-keygen -N "" -t rsa

2.id_rsa.pub->authorized_keysにリネーム
mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys

3.id_rsa,authorize_keysを600にする
chmod 600 ${HOME}/.ssh/id_rsa ${HOME}/.ssh/authorized_keys

4.接続先サーバにscpで配置
scp -r -p  [local]:${HOME}/.ssh [remote]:

5.ssh接続で確認
ssh [remote]

☆接続できない場合は・・
-パーミッションが原因かも -> 緩すぎるとNG
※↓を確認
--id_rsa,authorized_keysは600以下
--${HOME}が755以下

★鍵生成についての参考サイト
http://morizyun.github.io/blog/ssh-key-bitbucket-github/

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away