Thanks Mark and Brian...
I tried Brian's suggestion first (/usr/bin/ssh-keygen -f
/etc/ssh/ssh_host_key -N '') and it worked just fine.
The only real difference between what I did, and the command line above, is
that the command line above passes ssh-keygen an empty string as a
passphrase, and when I ran ssh-keygen on its own I actually specified a
passphrase... Hmmm...
Cheers...
Dave
Mark Horton wrote:
>
>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@handhelds.org
> http://handhelds.org/mailman/listinfo/familiar
> irc://irc.openprojects.net #familiar
_______________________________________________
Familiar mailing list
Familiar@handhelds.org
http://handhelds.org/mailman/listinfo/familiar
irc://irc.openprojects.net #familiar
Received on Sat Jun 30 18:17:35 2001
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:38:26 EDT