[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh and root logins

Dale E Martin wrote:

Anyways, I would like to disable password logins for root


PermitRootLogin no

You will have to login as ordinary user, and than do "su -".

Use tcpwrappers to limit users and IP addresses:


sshd: peter@xxx.xxx.xxx.xxx

but it works only if sshd is compiled with libwrap.so.0, or if it is controlled by inetd (see intetd.conf, or xinetd.conf). If you use standalone ssh daemon, try

ldd /usr/sbin/sshd

If there is no libwrap, you will have to compile source code with this flag:


Hope it helps.

Aco Dmitrovic
University Computing Centre

Reply to: