Connection Refused on ssh

John J. Boyer director at chpi.org
Fri Oct 8 16:08:16 UTC 2004


Janina,

well, adding that line to /etc/hosts.allowed didn't jork. The machine 
won't even respond to telnet when I use its IP address. It will respond 
to ping, however.

I'm beginning to think I should call that machine the mule, because  it's 
so stubborn.

John


On Fri, 8 Oct 2004, Janina Sajka wrote:

> John J. Boyer writes:
> > When I try ssh with -v I get a number of debug limes. the only one which 
> > seems significant is
> > sss_connect: needpriv 0
> 
> OK. Two questions ...
> 
> 1.)	Did you ascertain that sshd is indeed listening?
> 
> nmap -P0 [your.address] |grep 22
> 
> Here's an example of what you should get from my machine:
> 
> nmap -P0 66.92.170.84 |grep 22
> 22/tcp   open  ssh
> 
> 2.)	Is ssh allowed by /etc/hosts.allow in the target machine? Look
> for something like:
> 
> sshd: all
> 
> Specific names/addresses/masks are also acceptable, if you want to keep
> this machine restricted. Example:
> 
> sshd: 192.168.1.
> 
> Note the trailing '.'
> 
> Something like:
> 
> all: all
> 
> would also work, but isn't really advisable from a security perspective.
> 
> If you don't have such a line in /etc/hosts.allow, put one in and
> restart sshd like this:
> 
> service sshd restart
> 
> HTH.
> 
> 				Janina
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
> 

-- 
John J. Boyer; Executive Director, Chief Software Developer
Computers to Help People, Inc.
http://www.chpi.org
825 East Johnson; Madison, WI 53703





More information about the Blinux-list mailing list