Author Topic: Ssh login only from one ip  (Read 9580 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Ssh login only from one ip
« on: March 09, 2017, 04:13:10 PM »
Hi! I want to limit root login only with my ip.How can i do this?

Offline
**
Re: Ssh login only from one ip
« Reply #1 on: April 18, 2017, 09:03:24 PM »
add to etc/hosts.allow

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