You are not logged in.

#1 2013-05-19 21:23:35

Vorwaerts
Member
Registered: 2013-03-21
Posts: 4

[SOLVED] ssh port 22: Connection refused

I have two computers runing arch, both are connected to a router/modem. The router has the dhcp server. If I try to ssh from one arch box to the other I get:

ssh: connect to host 192.168.000.012 port 22: Connection refused 

On the other hand I can ssh into both arch boxes using Connectbot on my Android phone which is connected to the wlan.
The output of nmap is:

Starting Nmap 6.25 ( http://nmap.org ) at 2013-05-19 22:01 CEST                                                  
Nmap scan report for 192.168.0.12                                                                                
Host is up (0.15s latency).                                                                                      
Not shown: 999 closed ports                                                                                      
PORT   STATE SERVICE                                                                                             
22/tcp open  ssh 

Does anybody have a hint on what I am doing wrong?

Last edited by Vorwaerts (2013-05-20 06:39:39)

Offline

#2 2013-05-19 21:28:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] ssh port 22: Connection refused

Run ssh in verbose mode to generate some meaningful error messages...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-05-19 21:37:51

Vorwaerts
Member
Registered: 2013-03-21
Posts: 4

Re: [SOLVED] ssh port 22: Connection refused

$ ssh -vv 192.168.000.012
OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.000.012 [192.168.0.10] port 22.
debug1: connect to address 192.168.0.10 port 22: Connection refused
ssh: connect to host 192.168.000.012 port 22: Connection refused

Offline

#4 2013-05-19 21:37:57

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] ssh port 22: Connection refused

Are you trying to do "ssh 192.168.000.012"?  Because that is not the same as 192.168.0.12 you know.

Offline

#5 2013-05-19 21:50:18

Vorwaerts
Member
Registered: 2013-03-21
Posts: 4

Re: [SOLVED] ssh port 22: Connection refused

Thank you WonderWoofy. I do not know the difference, but with 192.168.0.12 it works.
I will try to use Google to find out the difference. I also would like to know why it works with 192.168.000.012 on the phone but not from arch.

Offline

#6 2013-05-19 22:01:16

Vorwaerts
Member
Registered: 2013-03-21
Posts: 4

Re: [SOLVED] ssh port 22: Connection refused

It looks like the explanation of the difference can be found on Wikipedia.

Offline

Board footer

Powered by FluxBB