Server cesurity: Difference between revisions
From Ilianko
Created page with "== Вход с ключ== Ssh login без парола" |
mNo edit summary |
||
| Line 2: | Line 2: | ||
[[Ssh login без парола]] | [[Ssh login без парола]] | ||
vi /etc/ssh/sshd_config | |||
#LoginGraceTime 2m | |||
#PermitRootLogin no | |||
#StrictModes yes | |||
#MaxAuthTries 6 | |||
Make the line look like this to disable logging in through ssh as root. | |||
PermitRootLogin no | |||
Now you’ll need to restart the sshd service: | |||
/etc/init.d/sshd restart | |||
Revision as of 09:28, 19 April 2014
Вход с ключ
vi /etc/ssh/sshd_config
#LoginGraceTime 2m #PermitRootLogin no #StrictModes yes #MaxAuthTries 6
Make the line look like this to disable logging in through ssh as root.
PermitRootLogin no
Now you’ll need to restart the sshd service:
/etc/init.d/sshd restart