Wednesday, 12 April 2017

How To Limit IP Binding in SSH Server.



By default SSH Server listen all avialble IP address assign on machine, but for secure SSH it would be good to run SSH service on single IP address. We can do same with derivative resent in SSH configuration file /etc/ssh/sshd_config and restart SSH service.

#ListenAddress 0.0.0.0

Change it to

ListenAddress 192.168.102.100

After editing SSH configuration file /etc/ssh/sshd_config, restart SSH service

### In case of RHEL 4,5 and 6###
#service sshd restart

### In case of RHEL7###
#systemctl restart sshd

No comments: