I'm not sure about the Bad file descriptor error, but here's how I got
sshd to work in case it helps.
cd /etc/ssh
ssh-keygen -f ssh_host_key
This should get protocol 1 to work.
I generated the dsa key on my linux workstation then transfered
ssh_host_dsa_key and ssh_host_dsa_key.pub to the ipaq /etc/ssh dir.
Here's the command I used to generate the dsa key on my workstation:
ssh-keygen -t dsa -f ssh_host_dsa_key
btw, just to be safe I deleted these 2 dsa files on my workstation.
I have no idea if this is the recomended way to get a dsa host key on
the ipaq.
-Mark
Davide Bruzzone wrote:
>
> Greetings all...
>
> I apologize if this question has been asked before (I know it has been asked
> on the handhelds mailing list, but I couldn't find an answer to it), and for
> my ignorance when it comes to sshd, but...
>
> I've installed the 0.4 bootstrap task, set up PPP on the iPaq, and my Linux
> box, and am now trying to ssh into the iPaq from my Linux box. The problem
> is that when the iPaq boots (or when I try to run sshd from the command
> line), I get the following errors:
>
> error: Could not load host key: /etc/ssh/ssh_host_key: Bad file descriptor
> Disabling protocol version 1
> error: Could not load DSA host key: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 2
> sshd: no hostkeys available -- exiting.
> sshd: no hostkeys available -- exiting.
>
> I ran ssh-keygen, and told it to put the host key files in /etc/ssh. It
> created ssh_host_key, and ssh_host_key.pub in /etc/ssh, but I'm still
> getting the errors above.
>
> My questions therefore are:
>
> - What does the "Bad file descriptor" error mean?
> - Why does sshd also seem to be looking for ssh_host_dsa_key (which
> ssh-keygen did not create - I looked at the ssh-keygen manpage - I believe
> it was for OpenBSD's version of sshd - and was reading about the -t dsa
> option, but the version of sshd on the iPaq doesn't support this option)?
>
> If anyone could point me in the direction of some
> information/documentation/etc., I would be most appreciative.
>
> Thanks in advance...
>
> Dave Bruzzone
>
> _______________________________________________
> Familiar mailing list
> Familiar_at_handhelds.org
> http://handhelds.org/mailman/listinfo/familiar
> irc://irc.openprojects.net #familiar
Received on Fri Jun 29 2001 - 02:27:36 EDT
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:12:27 EDT