LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2008, 06:01 PM   #1
gatesr494
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
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.

Quote:
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
sparc86
Member
 
Registered: Jul 2006
Location: Joinville, Brazil
Distribution: Debian, CentOS
Posts: 301

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

Quote:
iptables -L

copy us your results please.
 
Old 01-04-2008, 10:18 PM   #4
gatesr494
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:

Quote:
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
iptables:

Quote:
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
Member
 
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
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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).
 
  


Reply

Tags
ssh



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:08 AM.

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
Open Source Consulting | Domain Registration