ssh: port 22: connection refuused

Gary Kline kline at thought.org
Fri May 7 00:31:37 UTC 2010


On Thu, May 06, 2010 at 06:20:47PM -0500, Tim Daneliuk wrote:
> > 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?  :-)


	just very slightly!!  i'll grep for sshd from the output of ps.
	stranger things, etc, etc.


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

	i'm using whatever is bundled in the 7.3 release.  in ports
	its v1.2.33_5 ...


> 
> ----------------------------------------------------------------------------
> Tim Daneliuk     tundra at tundraware.com
> PGP Key:         http://www.tundraware.com/PGP/
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
 Gary Kline  kline at thought.org  http://www.thought.org  Public Service Unix
    The 7.83a release of Jottings: http://jottings.thought.org/index.php
           http://journey.thought.org  99 44/100% Guaranteed Novel



More information about the freebsd-questions mailing list