ssh: port 22: connection refuused

Tim Daneliuk tundra at tundraware.com
Thu May 6 23:20:53 UTC 2010


> On 5/6/2010 4:41 PM, Tim Daneliuk wrote:
<SNIP>

>>> pl 14:20 <tao> [5036] ssh zen
>>> ssh: connect to host zen port 22: Connection refused
>>> pl 14:20 <tao> [5037] ssh -vvvv zen
>>> OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
>>> debug1: Reading configuration data /etc/ssh/ssh_config
>>> debug2: ssh_connect: needpriv 0
>>> debug1: Connecting to zen [10.47.0.190] port 22.
>>> debug1: connect to address 10.47.0.190 port 22: Connection
>>> refused
>>> ssh: connect to host zen port 22: Connection refused
>>> pl 14:22 <tao> [5038]                        
>>>
>>> 	any idea what the ``needpriv 0'' means?


The more I look at this, the more it looks to me like your sshd is not
running at all, isn't running on port 22, or is being blocked by some
kind of firewall.  Just for snicks, I tried to ssh to a machine on our
network that I know does not have an ssh daemon running.  Look at the
results:

  >ssh -vvvvv sylvester
  OpenSSH_5.4p1 FreeBSD-20100308, OpenSSL 0.9.8k 25 Mar 2009
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to sylvester.tundraware.com [192.168.0.102] port 22.
  debug1: connect to address 192.168.0.102 port 22: Connection refused
  ssh: connect to host sylvester.tundraware.com port 22: Connection refused

Look familiar?  :-)

P.S. You are running a VERY old version of OpenSSH.  I believe there
were significant security problems back that far.

----------------------------------------------------------------------------
Tim Daneliuk     tundra at tundraware.com
PGP Key:         http://www.tundraware.com/PGP/



More information about the freebsd-questions mailing list