Search This Blog

Secure open SSH server

1. change the default port: edit /etc/ssh/sshd_config
Port 3389

2. limit the users: edit /etc/ssh/sshd_config
AllowUsers wilson

3. limit the users and ip addresses in sshd_config: edit /etc/ssh/sshd_config

AllowUsers wilson
AllowUsers *@192.168.20.*

4. limit the ip addresses:
edit /etc/hosts.deny
ALL: ALL

edit /etc/hosts.allow

ALL: 127.0 [::1]
sshd: 192.168.
sshd: 123.222.22.1

SEE ALSO: [1][2][3][4]

No comments:

Post a Comment