Ssh login only from one ip

Started by mluci, March 09, 2017, 04:13:10 PM

Previous topic - Next topic

mluci

Hi! I want to limit root login only with my ip.How can i do this?

Glenn

add to etc/hosts.allow

sshd : localhost : allow
sshd : allowedipaddress : allow
sshd : ALL : deny