SSH with multiple port access

1.How to configure SSH Server for remote SSH access with Multiple IP and Port ?(RHEL/CentOS-5,6)
1.  IP Address- 192.168.0.62 & Port no -6987
2.  IP Address- 192.168.0.177 & Port no -6988
Go in SSH Configuration file and add two below line
[root@shahzad ~]#vim /etc/ssh/sshd_config
ListenAddress 192.168.0.62:6987
ListenAddress 192.168.0.177:6988
##Restart SSH Service:
[root@shahzad ~]#service sshd restart
##To Check open port of ssh
[root@shahzad ~]# netstat -tunlp | grep ssh
 ##Now, Access Server:  ( -p - for port )
[root@shahzad ~]#ssh 192.168.0.62 -p 6987      
[root@shahzad ~]#ssh 192.168.0.177 -p 6988
#####Thanks for Visiting on my blog, Have a good Luck !!#####

Post a Comment

Mới hơn Cũ hơn