You are not logged in.

#1 2011-11-22 22:19:01

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

[Solved]Unable to SSH to another PC

Until a couple of days ago, I logged into another box on the LAN using:

ssh <ip address>

Now, that command just reports:

ssh: connect to host <ip address> port 22: Connection timed out

The following also fails:

ssh <ip address> -l user

However, the following succeeds:

ssh  user@<ip address>

Can anyone explain this change?

Last edited by Cotton (2011-11-23 19:35:25)

Offline

#2 2011-11-23 00:01:41

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: [Solved]Unable to SSH to another PC

I have a theory.  Does this fail?

ssh -l user <ip address>

the man pages show the options before the ip address.
Also, are the user names the same on both machines?


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

#3 2011-11-23 18:12:56

denstark
Member
Registered: 2005-08-05
Posts: 15
Website

Re: [Solved]Unable to SSH to another PC

Can you ping the other host? Was the SSH Port on the other host changed to be non default? You may want to look into this. A good way to test is to enable ssh on your local machine and do ssh localhost and see if you can access that, that way we can take the other host out of the picture.

Offline

#4 2011-11-23 18:34:37

b4data
Member
Registered: 2010-12-14
Posts: 141

Re: [Solved]Unable to SSH to another PC

denstark wrote:

we can take the other host out of the picture.

Cotton wrote:

However, the following succeeds:

ssh  user@<ip address>

Offline

#5 2011-11-23 19:08:47

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,230
Website

Re: [Solved]Unable to SSH to another PC

Cotton:

Try connecting with ssh in verbose mode.

ssh -vvv <ip-adress>

Offline

#6 2011-11-23 19:35:04

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Solved]Unable to SSH to another PC

Apologies - I've rebooted the remote machine and all is working properly.

The PC responded to pings and nmap stated that port 22 was open, so I don't know what the problem was.

But thanks for the suggestions, they'll be useful for next time wink

Offline

#7 2011-11-23 19:40:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Unable to SSH to another PC

Seems the same situation as https://bbs.archlinux.org/viewtopic.php?id=130783 - it fixed itself :-)

Offline

Board footer

Powered by FluxBB