LoginSignup
1
1

More than 5 years have passed since last update.

SSH設定あれこれ

Posted at

恥ずかしながらいつも忘れてググるのでメモします。
もっと良い設定とかあれば知りたい。

$ cd ~
$ chmod 700 .ssh
$ cd .ssh
$ chmod 600 authorized_keys
$ sudo vim /etc/ssh/sshd_config
/etc/ssh/sshd_config
PermitRootLogin yes
-> PermitRootLogin no

#AuthorizedKeysFile     %h/.ssh/authorized_keys
-> AuthorizedKeysFile     %h/.ssh/authorized_keys

#PasswordAuthentication yes
-> PasswordAuthentication no 

authorized_keysはまあなんとかするとしてこんな感じだろうか。

1
1
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
1