Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 2 of 2

Thread: SSH login

  1. #1
    juc1 is offline Silver Member
    Join Date
    Dec 2010
    Posts
    45

    Default SSH login

    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

  2. #2
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,081

    Default

    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

    Hope this helps!


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts