Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-08-2011, 10:45 AM   #16
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 191Reputation: 191

1) how are you forwarding the port?

2) go to does it say your ip is

3) i dont know if one can put putty in verbose mode, but if you can, do that? does it have a more descriptive error? is putty set to use the correct port?

4) is the putty box behind a firewall that is preventing it from getting through?

5) did Juako's suggestion of "grep -Ri ssh /var/log/*" come up with any thing?
Old 10-08-2011, 10:54 AM   #17
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Have you checked whether sshd service is up and running properly on both the machines?

and the iptables setting of both the machines needs to be checked
You have posted the iptables output of your machine and not of the machine of your friend.

There is no issue with putty.

It is something with the sshd service

Check whether your ssh service is up and running
#ps -aux | grep sshd
Also check for port 22 whether your machine is listening or not

#netstat -nap | grep :22
Just try restarting the service

#service sshd restart

and check the connectivity to make sure both machines are in network
#ping 192.168.0.X(IP of your friends machine)

Try connecting to any other machine whether it gives the same error from both the machines.

(and all the above things needs to be checked on both machines)
1 members found this post helpful.
Old 10-09-2011, 09:06 PM   #18
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 14,079
Blog Entries: 24

Rep: Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798Reputation: 3798
Is the ssh server daemon running on the target machine? Not all distros enable the server (which is what answers your ssh request) by default.

You can check whether it is like this:

~$ ps -A | grep sshd
 2602 ?        00:00:00 sshd
If the ps command returns nothing, there's nobody home to answer the door when you come knocking.

Also, make sure the ssh port (22 by default) is open in the firewall.

I spent 15 minutes on the phone with a friend today. He was getting the exact results OP is getting and not having sshd running was the reason.

Last edited by frankbell; 10-09-2011 at 09:07 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH connection refused pgte3 Linux - Newbie 14 10-15-2010 01:41 PM
SSH Connection Refused tuftystick Linux - Newbie 15 01-12-2009 08:44 PM
SSH connection Refused gatesr494 Linux - Networking 5 01-05-2008 05:43 AM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
SSH connection refused bmccorm2 Linux - Networking 4 05-15-2007 02:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration