LoginSignup
2
2

More than 5 years have passed since last update.

【爆即コピペ】公開鍵認証 SSH ログイン設定

Last updated at Posted at 2015-05-28

1.キー作成

ssh-keygen -t rsa
mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
chmod 600  ~/.ssh/authorized_keys

2.公開鍵認証を許可

vi /etc/ssh/sshd_config

公開鍵認証を許可するため、以下をコメントアウト
PubkeyAuthentication yes

3.サービスの再起動

service sshd restart
2
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
2
2