How to enable Public key based authentication and Allow root login in SSHD

Enabling key based authentication in SSH and enabling root login in SSH.

vi /etc/ssh/sshd_config

PubkeyAuthentication yes

PermitRootLogin yes

Restart the ssh deamon so that the new settings comes into effect. 

service sshd restart
0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to stream the ssh sessions in real time?
    Viewed 2980 times since Wed, Nov 22, 2017
    Is it possible to view all ssh logs of a deleted user ?
    Viewed 1280 times since Sun, Dec 17, 2017
    Is it possible to disable security codes in ssh gateway?
    Viewed 1144 times since Wed, Jan 31, 2018
    What are the encryption technologies used to secure my data?
    Viewed 1230 times since Mon, Aug 21, 2017
    Will i be locked out of my servers if my ezeelogin hosted server goes down ?
    Viewed 1920 times since Mon, Aug 21, 2017
    How to find the ssh jumphost software version that is being run?
    Viewed 1181 times since Thu, Mar 1, 2018
    Can we map existing user group in ldap to ezeelogin as ezeelogin user group ?
    Viewed 3115 times since Mon, Sep 25, 2017
    Webportals unavailable for user
    Viewed 2555 times since Fri, Dec 8, 2017
    How to copy files from my desktop to my ssh gateway user account so that it can be transferred to other remote servers behind the ssh gateway?
    Viewed 3026 times since Wed, Oct 11, 2017
    Add custom fields on server add form
    Viewed 394 times since Wed, Mar 27, 2019