Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-04-2008, 06:01 PM   #1
LQ Newbie
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
SSH connection Refused

I know a little about Linux and have the following question: When I try to use putty to SSH into my Ubuntu box it comes up with a connection refused.

I am directly connected to the internet and don't know if their is a firewall on Ubuntu.

Please Help!
Old 01-04-2008, 06:25 PM   #2
Senior Member
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,961

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
What version of Ubuntu?

Are you sure sshd is running? Run this command. 'sudo ps aux | grep sshd' ( without the quotes ).

Here is what you should see, if it is running.

ps aux | grep sshd
root 5506 0.0 0.1 5100 920 ? Ss 08:28 0:00 /usr/sbin/sshd
root 13850 0.0 0.0 3076 808 pts/1 S+ 19:22 0:00 grep --color sshd
Old 01-04-2008, 07:01 PM   #3
Registered: Jul 2006
Location: Joinville, Southern Brazil
Distribution: Debian, CentOS
Posts: 296

Rep: Reputation: 31
Have you tried to check for the iptables rules?

iptables -L

copy us your results please.
Old 01-04-2008, 10:18 PM   #4
LQ Newbie
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Here is what I am getting on those commands

Ubuntu 7.10

sudo ps aux | grep sshd:

root 4925 0.0 0.0 5280 968 ? Ss 23:12 0:00 /usr/sbin/sshd
root 5738 0.0 0.0 2980 772 pts/0 S+ 23:15 0:00 grep sshd

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Old 01-05-2008, 02:37 AM   #5
Last Attacker
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 15
I sometimes have the same issues with SSH. Maybe it is SSHd that is kicking you out itself.
Get Webmin. With it you can configure SSH pretty easily.
Old 01-05-2008, 05:43 AM   #6
Registered: May 2001
Posts: 28,826
Blog Entries: 55

Rep: Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341
One should resist the urge to promote or install Webmin just because one wants a GUI to configure things with. Webmin apparently has the habit of changing more things than one sees at first sight and therefore could make things worse unless you take precautions. If ssh'ing somewhere does not work the first thing would be to show (preferably in BB code tags) the output of using ssh in verbose mode (can take up to triple -v's) and the commandline you use (scrub and replace any personal information like public IP addresses).



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? lowpro2k3 Linux - Networking 2 11-04-2009 11:02 AM
ssh connection refused lee_elginlinux Linux - Networking 3 12-12-2007 07:03 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
SSH Connection Refused meping Linux - Networking 9 04-15-2006 01:04 AM

All times are GMT -5. The time now is 10:45 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