Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- root login with openssh
- Andre Lauw
July 6, 2005, 11:14 pm
rate this thread
Simple question. I was playing with ssh and I tried to disable root login.
In sshd_config I've changed the line with "#PermitRootLogin yes" to
"#PermitRootLogin no" then I tried to login with root account from
somewhere else and I can still get in. Then I removed # from the line with
"#PermitRootLogin no" to "PermitRootLogin no" with no result.
My question : does someone know how to disable root login?
Re: root login with openssh
You have to remember to restart sshd after you make the changes. sshd does
NOT reread its config file every time it is used. It reads it once.
Or you could do
killall -SIGHUP sshd
to have it reread its config files. (man sshd)
Note the # in froont of the line turns it into a comment.
- » Question concerning remote port-forwarding with SSH
- — Next thread in » Linux Security
- » How to setup a ssh tunnel for telnet with openssh?
- — Previous thread in » Linux Security
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security