ssh: connect to host 192.168.168.94 port 22: Connection refused
I am using ubuntu 11.10 as my desktop and centos 6 as a server.
I used to connect from ubuntu to centos using ssh. It was fine all the while. Start from today, i can not ssh to my centos server. When I type Quote:
Quote:
Upon re-install I can ssh to the server but for a while only ( about 20 minutes only ). Suprisingly after that I get Quote:
Quote:
I tried this command Quote:
Quote:
Can I get any help? Thanks so much in advance. |
Hi,
It seems that sshd service is not running on the server. Code:
#/etc/rc.d/init.d/sshd status Code:
# netstat -natlpe | egrep -i ssh Code:
vi ~/.ssh/config Code:
#/etc/rc.d/init.d/iptables stop http://www.cyberciti.biz/faq/centos-ssh/ -- Thanks, Bijo |
Hi bijo505,
for your first command I get Quote:
Quote:
For the third change as below Code:
vi ~/.ssh/config Shall i create one? Thank you |
Hi,
You can create that config file. Are you able to ssh to the server from the server and any other hosts now? Can you please check the sshd_config file and if you can attach the same here, it will help to have a look at the config. -- Thanks, Bijo |
Hi Bijo,
I created the config file and changed its mode as below Quote:
Thank you so much for your help. Regards |
All times are GMT -5. The time now is 07:50 PM. |