LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SSH connection Refused (https://www.linuxquestions.org/questions/linux-networking-3/ssh-connection-refused-611210/)

gatesr494 01-04-2008 06:01 PM

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!

camorri 01-04-2008 06:25 PM

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

sparc86 01-04-2008 07:01 PM

Have you tried to check for the iptables rules?

Quote:

iptables -L

copy us your results please.

gatesr494 01-04-2008 10:18 PM

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

Last Attacker 01-05-2008 02:37 AM

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.

unSpawn 01-05-2008 05:43 AM

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).


All times are GMT -5. The time now is 08:40 PM.