ts-7000
[Top] [All Lists]

[ts-7000] Re: SSH on ARM Debian?

To:
Subject: [ts-7000] Re: SSH on ARM Debian?
From: Mike Dodd <>
Date: Tue, 15 Nov 2011 22:48:15 -0500
I'm completely stymied. It turns out that sshd is NOT starting on the 
USB Debian.

First I generated the key files with:
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
and
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key

Next I started the daemon manually with 'sshd -ddd' and got the 
following messages:

-----
debug2: read_server_config: filename /etc/ssh/sshd_config
debug1: sshd version OpenSSH_3.8.1p1 Debian-8.sarge.4
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address
-----

My /etc/ssh/sshd_config file contains these first lines:
-----
# Package generated configuration file
# See the sshd(8) manpage for defails

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
ListenAddress 0.0.0.0
Protocol 2
-----
I uncommented the 'ListenAddress 0.0.0.0' because one advice on a Google 
search said to do so. It made no difference -- I get the 'Bind to port 
22 on 0.0.0.0 failed: Address already in use' error with it commented or 
uncommented.

Does anyone have any idea what I should do next? Again, I've copied the 
sshd_config file from the working ssh on the NFS 7250. Why shouldn't the 
  USB Debian work the same way?

Thanks for any help.

---Mike


Don Tucker wrote:
> 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:
> 
 > [...]
 >
> Don
>

Mike Dodd wrote:
>> 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.



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU