I have also seen some flaky behavior with SSH on the Debian lenny distro
on ARM. Most of the time it works, but sometimes, after things have been
running for a few days I get the error you describe. Rebooting usually
solves the problem. I edited the "start" line of /etc/init.d/ssh so that
the call to sshd has a -d in it (you can generate even more debug info
by adding -ddd), and this is what I got when I tried to ssh to the board:
[...]
server: userauth-request for user root service ssh-connection method
publickey
client: Offering RSA public key: /home/snsh/.ssh/id_rsa
client: send_pubkey_test
client: we sent a publickey packet, wait for reply
server: attempt 1 failures 0
server: test whether pkalg/pkblob are acceptable
server: /etc/init.d/ssh: line 76: 10637 Illegal instruction
start-stop-daemon
--start --quiet --oknodo --pidfile /var/run/sshd.pid --exec
/usr/sbin/sshd --
$SSHD_OPTS -d
failed!
client: Connection closed by 192.168.1.1
I posted a question to comp.security.ssh about this, and they suggested
adding more d's to the sshd call to get more information, the next time
I see this happening.
Don
On 11/2/2011 8:50 PM, Mike Dodd wrote:
I finally got one of my three 7250s to load and go into Debian Sarge on
a USB drive. The third 7250 won't, likely because of a corrupt onboard
file system. (I've asked TS to quote on re-flashing the board.)
One third 7250board boots into Sarge via NFS, and the default init.d
startup includes an SSH server. I can connect to this board via SSH, and
that's how I compile and test my C programs.
However, on the USB version of Sarge, SSH won't connect. When I first
started the SSH server, it complained that it couldn't find
ssh_host_rsa_key and ssh_host_dsa_key so I generated the keys with
"ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' " and
"ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''". I didn't
have to do this on the NFS version of Sarge -- don't know why it was
different on the USB version.
Now the SSH server starts, but I still can't connect to the 7250.
I copied /etc/ssh/ssh_config and /etc/ssh/sshd_config from the NFS 7250
to the USB 7250, but still I get a "connection closed by remote host"
every time I try to connect.
I think the SSH client is communicating with the SSH server on the 7250,
because I get a "host not reachable" message if I try to connect to the
NFS 7250, which is currently powered-down.
Does anyone know if I'm doing something wrong? Why should SSH behave
differently on the USB Debian than on the NFS Debian?
Thanks in advance.
--
Mike
Mike Dodd
Louisa County, VA USA
http://mdodd.com
smime.p7s
Description: S/MIME Cryptographic Signature
|