PDA

View Full Version : SSH login



juc1
2011-09-16, 06:05 AM
Hi all,

Can anyone please tell me...

If I log in to SSH via Plesk is that called local access as opposed to from my own pc = remote access?

If I edit sshd_config to say 'permit root login no' - will that only affect non-plesk logins - ie root will still be able to login to SSH via Plesk?

Thank you

suwunk
2011-09-16, 10:24 AM
Disable Root Login (PermitRootLogin)

By default you can ssh to the server as root. It is best not to allow root to login directly to the server. Instead, you should login to the system as your account and then do ‘su -’ to login as root.
If you have multiple sysadmins in your organization, and if they all login to the server directly as root, you might not know which sysadmin logged in as root. Instead, if you disable login as root, sysadmins are forced to login as their account first, before they can do ‘su -’, this makes the auditing easier.

Add the following entry to sshd_config to disable root to login to the server directly.
$ vi /etc/ssh/sshd_config
PermitRootLogin no

I think it also affecting the SSH Terminal in Plesk
details:
7 Default OpenSSH Security Options You Should Change in /etc/ssh/sshd_config (http://www.thegeekstuff.com/2011/05/openssh-options/)

Hope this helps!