Keith Smith - My Blog

Enable SSH login with Root

Friday, September 4, 2015 - by Keith A. Smith

I recently had a need to ssh into a *nix box using the root credentials for a particular situation. It took me a few minutes to figure out the following
  1. Open up /etc/ssh/sshd_config and set “PermitRootLogin” to “yes”. (Mine was set to “without-password”)
  2. I then restarted the sshd process. This is done by killing the existing one (use ps -aux|grep sshd to get the process ID, then use kill to zap it), then restarting /usr/sbin/sshd

Once I was done I did the above steps again but changing the "PermitRootLogin" to "without-password"
  Share Post   

View Comments Comments


Leave a Comment