ssh doesn't work from inetd but ok as a daemon

From: some body (mackin_cool@yahoo.com)
Date: 10/15/02


From: mackin_cool@yahoo.com (some body)
Date: 15 Oct 2002 14:01:19 -0700

I'm hoping someone can help me debug the following problem on a Sun
Solaris server. My version of secure shell is 3.1, (I tried 3.4 but
couldn't get it to work)

I can't get secure shell to work from inetd but it works ok when
running as a daemon. I have secure shell running from inetd on several
other machines so Im not a total rookie. Im using the same version on
all machines and the same configuration. I have tried the following
commands on my localhost, I figured it would eliminate some of the
complexity. To my surprise it does not work on my localhost. As I have
said already it works when running inetd as a standalone daemon
locally and remote. My ideal preference is to run it from inetd. The
"connection refused" message seems to be generated when sshd is not
running so I might guess that sshd it not been started from inetd

# telnet localhost 22
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

# ssh -v localhost
OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 0 geteuid 0 anon 1
debug1: Connecting to localhost [::1] port 22.
debug1: temporarily_use_uid: 0/1 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 0/1 (e=0)
ssh: connect to address ::1 port 22: Network is unreachable
debug1: restore_uid
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: temporarily_use_uid: 0/1 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 0/1 (e=0)
ssh: connect to address 127.0.0.1 port 22: Connection refused
debug1: restore_uid

The entry in /etc/inet/inetd.conf looks like ..
ssh stream tcp nowait root /usr/local/sbin/sshd sshd
-i

I have tried the following in sshd_config but it didnt work
ListenAddress 0.0.0.0
ListenAddress ::

I then tried the following in sshd_config but it didnt work
ListenAddress 10.1.10.51
ListenAddress 127.0.0.1

Any help would be appreciated, I can't afford to spend another 6 hours
on this tomorrow. Thanks in advance.



Relevant Pages

  • Re: SSH through wireless router
    ... When you say that I should try ssh ... Connection closed by remote host ... When I went to sshd to port 2222: ... debug1: read PEM private key done: type RSA ...
    (Debian-User)
  • Re: [SLE] 9.1 sshd how do I start it???
    ... SSHD listens on port number 22. ... Next, make sure the ssh daemon is running, by either turning it on via YaST ... or using the rcsshd command. ... The authenticity of host 'localhost ' can't be established. ...
    (SuSE)
  • Re: SSH commands to HMC
    ... debug1: Reading configuration data ... debug1: connect to address 10.26.10.21 port 22: ... Connection timed out ... ssh: connect to host 10.26.10.21 port 22: Connection ...
    (AIX-L)
  • Re: CVS over SSH hangs
    ... When I try to checkout a large project from the localhost with ssh the ... I assume the problem is the ancient version of ssh I have installed on the localhost: ... > debug1: Seeding random number generator ... CVS transfer completes, but the session just hangs there as though there ...
    (comp.security.ssh)
  • localhost URL redirector?
    ... pre-configured port on localhost and thus forwarded by ssh. ... to map different domains to different localhost ports (and localhost:80 ...
    (comp.security.ssh)