Networking Forums

Networking Forums > Computer Networking > Linux Networking > Can't connect via ssh

Reply
Thread Tools Display Modes

Can't connect via ssh

 
 
Wolfgang
Guest
Posts: n/a

 
      01-05-2010, 02:18 PM
I have 4 computers, all connected to a Fritz router. On three of them
SuSE 10.1 is installed.

Recently I upgraded one of them to SuSE 11.2. But now, this computer is
no more reachable by ssh from the other ones. Any attempt to connect to
it via ssh produces the answer:

"ssh: connect to host <name> port 22: Connection refused"

How can I open it to ssh access from the other computers?

Thank you in advance for your help,
Wolfgang
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      01-05-2010, 02:30 PM
Hello,

Wolfgang a écrit :
>
> Recently I upgraded one of them to SuSE 11.2. But now, this computer is
> no more reachable by ssh from the other ones. Any attempt to connect to
> it via ssh produces the answer:
>
> "ssh: connect to host <name> port 22: Connection refused"


Check that
- sshd is running (ps aux)
- it has a socket listening on port 22 (netstat -tnlp)
- iptables rules allow TCP connections to port 22 (iptables-save)
 
Reply With Quote
 
Wolfgang
Guest
Posts: n/a

 
      01-05-2010, 02:47 PM
Pascal Hambourg wrote:
> Hello,
>
> Wolfgang a écrit :
>> Recently I upgraded one of them to SuSE 11.2. But now, this
>> computer is no more reachable by ssh from the other ones.
>> Any attempt to connect to it via ssh produces the answer:
>>
>> "ssh: connect to host <name> port 22: Connection refused"

>
> Check that
> - sshd is running (ps aux)
> - it has a socket listening on port 22 (netstat -tnlp)
> - iptables rules allow TCP connections to port 22 (iptables-save)


Thanks a lot! Your first guess hit the problem.
Having started sshd, I can connect to the computer
from any other site of my network.

Now I have put links to sshd in /etc/init.d/rc[35].d
for making it start at boot time.

Merci bien ancore une fois,
Wolfgang
 
Reply With Quote
 
Lord Eldritch
Guest
Posts: n/a

 
      01-06-2010, 12:14 AM
Pascal Hambourg wrote:

> Check that
> - sshd is running (ps aux)
> - it has a socket listening on port 22 (netstat -tnlp)
> - iptables rules allow TCP connections to port 22 (iptables-save)


And /etc/host.allow & /etc/host.deny

--
Lord Eldritch
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      01-06-2010, 08:59 AM
Lord Eldritch a écrit :
> Pascal Hambourg wrote:
>
>> Check that
>> - sshd is running (ps aux)
>> - it has a socket listening on port 22 (netstat -tnlp)
>> - iptables rules allow TCP connections to port 22 (iptables-save)

>
> And /etc/host.allow & /etc/host.deny


s/host/hosts/

I wonder, would that cause a "connection refused" at TCP level ?
AFAICS, the TCP connection is established and closed after a short
delay, without any communication with the service.
 
Reply With Quote
 
Wanna-Be Sys Admin
Guest
Posts: n/a

 
      01-06-2010, 09:23 AM
Wolfgang wrote:

> I have 4 computers, all connected to a Fritz router. On three of them
> SuSE 10.1 is installed.
>
> Recently I upgraded one of them to SuSE 11.2. But now, this computer
> is no more reachable by ssh from the other ones. Any attempt to
> connect to it via ssh produces the answer:
>
> "ssh: connect to host <name> port 22: Connection refused"
>
> How can I open it to ssh access from the other computers?
>
> Thank you in advance for your help,
> Wolfgang


If only the one system was changed and it worked before, then on that
system check your firewalls (iptables) and that it allows incoming over
your SSH port (I assume it's using the default port of 22), at least
allowing access for the source IPs of the other systems, check that ssh
itself is running, check /etc/hosts.{allow,deny} files, the SSH config
settings, and above all, check the logs on the system to see what it
says about rejecting it.
--
Not really a wanna-be, but I don't know everything.
 
Reply With Quote
 
Lord Eldritch
Guest
Posts: n/a

 
      01-06-2010, 11:34 AM
Pascal Hambourg wrote:

> Lord Eldritch a écrit :


>> And /etc/host.allow & /etc/host.deny

>
> s/host/hosts/
>

My fault. That happens when you write without thinking too much.

> I wonder, would that cause a "connection refused" at TCP level ?
> AFAICS, the TCP connection is established and closed after a short
> delay, without any communication with the service.
>

Again, I didn't think to much about it, just the files that came to mind
when I find connection problems.
--
Lord Eldritch
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to Wireless Network, Advanced & Connect greyed out? William P.N. Smith Wireless Internet 1 10-16-2004 02:25 PM
RE: Client can't connect to internet but can connect to SBS2003 =?Utf-8?B?QmVuIEZpbmtsZWE=?= Windows Networking 0 07-29-2004 08:21 PM
unable to connect to internet, can connect to other PC through router doug mccausland Windows Networking 2 01-25-2004 02:26 PM
Win2K install SP4 = can't connect to MSN and slow connect to others =?Utf-8?B?TE1C?= Windows Networking 0 12-31-2003 06:01 PM
Help! Fail to connect a windows XP laptop via a wireless connect to Dlink router! Stan Wireless Internet 1 11-30-2003 04:14 AM



1 2 3 4 5 6 7 8 9 10 11