Re: ssh_exchange_identification uClinux problem
René Berber wrote:
> robert wrote:
>
> > I'm trying to run open sshd on an embedded sysyem, uClinux . It uses
> > inetd to start it. I've googling for a few days and I'm stuck.
> >
> The usual way to debug things is using "ssh -v ...", add more -v for
> more detail. The same goes for the server side.
>
> If that doesn't start from the beginning, telnet to port 22, does
> it answer? if not then you may have a firewall, try from the server
> itself.
This is what I get from the client - the servers only debug statement
is when it loads sshd_config:
/home/iksrazal/work/tweak/uClinux-dist> ssh -vvv -l root 10.101.42.101
OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.101.42.101 [10.101.42.101] port 22.
debug1: Connection established.
debug1: identity file /home/iksrazal/.ssh/identity type -1
debug1: identity file /home/iksrazal/.ssh/id_rsa type -1
debug1: identity file /home/iksrazal/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
[linux(iksrazal)]
/home/iksrazal/work/tweak/uClinux-dist> telnet 10.101.42.101 22
Trying 10.101.42.101...
Connected to 10.101.42.101.
Escape character is '^]'.
Connection closed by foreign host.
These files did not exist when I ran the command:
debug1: identity file /home/iksrazal/.ssh/identity type -1
debug1: identity file /home/iksrazal/.ssh/id_rsa type -1
debug1: identity file /home/iksrazal/.ssh/id_dsa type -1
>
> About the keys, openssh documents how to set the host keys in the
> INSTALL file, something like: ssh-keygen -t dsa -f
> /etc/ssh/ssh_host_dsa_key -N ""; but the path may be different
> (/usr/local/etc) and usually rsa keys are also created. Each user's
> keys have to be created also. Some distributions include scripts to do
> both operations (something like ssh-host-config, ssh-user-config) but
> this varies.
I tried that on both the client and server side and got basically the
same result, using several variations of keys.
I think this is because of inetd somehow. Please ,
Robert
|