[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SSH: does it require portmapper and what hostname is it looking for?



* Anthony Campbell <ac@acampbell.org.uk> [2004-02-18 12:45]:
> On 18 Feb 2004, Jacob S. wrote:
> > On Wed, 18 Feb 2004 14:25:08 +0000
> > Anthony Campbell <ac@acampbell.org.uk> wrote:
> > 
> > > I'm trying to run ssh between two computers but I get:
> > > 	
> > > 	"connect to host port 22: Connection refused."
> > > 
> > > I have portmapper turned off for security, but is it essential for
> > > ssh?
> > 
> > In my /etc/hosts.allow file I have the line "sshd: ALL". I don't think
> > portmap should make a difference. (Also note that I'm running ssh as a
> > daemon, on this machine, not through inetd or anything else.)
> > 
> so am I.
> 
> > > Also, what is the hostname I have to supply? The FQDN seems to be
> > > acampbell.org.uk but this is the same for both computers, which
> > > doesn't seem to be right.
> > 
> > Any FQDN that properly resolves to the ip address for the computer
> > you're trying to ssh into should work. You could also use it's ip
> > address, if you need to make sure which computer is giving you the
> > problem.
> > 
> > HTH,
> > Jacob
> > 
> Thanks for this reply. I'm getting "connection refused" on port 22. I
> don't know if this port is blocked, perhaps. (I had bastille in place at
> one time though not now.)
> 
Just a couple of thoughts:
 - Are you able to telnet to port 22 on the target system?
   for example: telnet abc.com 22
   you should get to see the OpenSSH banner if it connects successfully.

 - Do you have a router (i.e., LinkSys or DLink type box) that you need to
   open port 22 on?

Lou Losee



Reply to: