LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 190Reputation: 190

1) how are you forwarding the port?

2) go to http://www.whatsmyip.org does it say your ip is 86.184.34.109

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, 11:54 AM   #17
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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
Code:
#ps -aux | grep sshd
Also check for port 22 whether your machine is listening or not

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

Code:
#service sshd restart

and check the connectivity to make sure both machines are in network
Code:
#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, 10:06 PM   #18
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,343
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
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:

Code:
~$ 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 10:07 PM.
 
  


Reply


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 02:41 PM
SSH Connection Refused tuftystick Linux - Newbie 15 01-12-2009 09:44 PM
SSH connection Refused gatesr494 Linux - Networking 5 01-05-2008 06:43 AM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 05:38 PM
SSH connection refused bmccorm2 Linux - Networking 4 05-15-2007 03:59 PM


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

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