Allow root account to use SSH (openssh)

Q. Previous admin blocked root access to ssh server. How do I allow root account access to ssh server

A. Allowing direct root access over ssh is a security risk. However following steps will allow you to login as root over ssh session: Open sshd_config file: # vi /etc/ssh/sshd_config Find out line that read as follows: PermitRootLogin no Set it as follows: PermitRootLogin yes Find out line that read as follows (this line may not exists in your configuration): DenyUsers root user2 user3 Set is as follows: DenyUsers user2 user3 Save and close the file. Restart the sshd: # /etc/init.d/ssh restart

  • 40 Users Found This Useful
Was this answer helpful?

Related Articles

Centos 6.5 directory size is incorrect using du command

I 'm running the du command on one of my websites directories and I'm getting 2 different result,...

Under any linux system, you want to use the command du. (Disk Usage)

Common usage is : du -sh file(s) name(s) or du -sh /path/to/dir/* Replace 'h' by 'k','m' or 'g'...