ssh port not working
dear gurus
i have centos 5.4 i change port in /etc/ssh/ssh_config and restart sshd service when i try to access, the new port not working and old port still responding from windows pc. then suddenly i found port 22 and new port stop responding no more.i use putty or securecrt from my window pc. then i connect 1 more linux box from there i do <ssh> i found it is still using port 22 i am not using any firewall or route nothing block it is testing on network. then also i were using scp jobs in crontab that stop working. highly appreciate in advanced kind regards salim |
You should change port in /etc/ssh/sshd_config
/etc/ssh/ssh_config is ssh client for |
try editing /etc/ssh/sshd_config
the clue was when you edited /etc/ssh/ssh_config and then restarted sshd service. |
i change the port to 9999, and restart sshd and network service it does not work. the changing port has no effect on machine. it still connect ssh with port 22, what else could be missing, no firewall or selinux security in between i am testing overlan.
ssh -p 9999 10.1.1.193 ssh: connect to host 10.1.1.193 port 9999: Connection refused [root@zamanda ~]# ssh -p 10.1.1.193 Bad port '10.1.1.193' [root@zamanda ~]# ssh -p 22 10.1.1.193 The authenticity of host '10.1.1.193 (10.1.1.193)' can't be established. RSA key fingerprint is 10:db:59:df:20:86:cc:05:2c:c7:8f:8f:6e:73:5d:78. Are you sure you want to continue connecting (yes/no)? no Host key verification failed. |
Hi There,
I'm using centos as well in order for your ssh to work you must open the port in your local fire wall by typing the following: from the command line type: setup go to firewall configuration go to customize under port add your port number P.S like the other said make sure you do all your ssh configuration in: /etc/sshd_config Goodluck Jettwa |
sorry
/etc/ssh/sshd_config BTW you must add the info I told you even if your firewall is disable. |
All times are GMT -5. The time now is 05:56 PM. |