OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: lardman on December 12, 2004, 01:21:02 pm

Title: Aaaaaargghhhh: Openssh
Post by: lardman on December 12, 2004, 01:21:02 pm
I've been fiddling with my C750 (with GPE), trying to get it working so I can test driftnet and R once I get it compiling correctly.

I removed dropbear, and installed openssh and openssh-sftp.

Initially I got an error about libcrypto (is this in the dependencies list?), now I've got it (when I try running sshd on the Z) moaning about not being able to find host keys in /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key.

I ran ssh-keygen (which is a pain itself):

ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

No luck, still complains about not being able to find host keys. Do I decided to try copying the output of the above to ~/.ssh/, still no luck.

How's about moving /etc/ssh/ssh_host_?sa_key /etc/ssh/ssh_host_?sa_key.host
and moving the public one into its place /etc/ssh/ssh_host_?sa_key.pub /etc/ssh/ssh_host_?sa_key

Now I get an error about the permissions being too open. After going online (busybox's lack of docs has pissed me off in a big way this arvo, as well as the way the Fn key isn't working in rxvt on my C750 - aaaarrrggghhh!!!), I changed them to:

chmod 700 /etc/ssh
chmod og-rwx /etc/ssh/*

and it's gone back to complaining about not being able to find any host keys.

This has pissed me off in a big way (though I'm starting to laugh about it now). If someone can tell me what on earth I should do, I'll submit a patch to openssh in OE (which'll automatically do the keygen and change permissions) so no-one else need suffer my tribulations.

Time for beer I think.

Cheers,


Si
Title: Aaaaaargghhhh: Openssh
Post by: dhns on December 12, 2004, 02:41:50 pm
You could look at the postinst script of the openssh-server_3.6.1p1_arm.ipk for the Sharp ROM.

Attached is the control.tar.gz

-- hns
Title: Aaaaaargghhhh: Openssh
Post by: Teletubbie on December 12, 2004, 02:50:10 pm
Hi lardman,
openssh works fine as it is provided with CoreDumps cardfs rom (opie). I asked him and the openssh is from original 3.5.2
The only different could be the "service pack"
It is is named service release and it is in the upgrades feed. Hentges rom have that included and I tested a lot of them and never had a problem with ssh, always removed dropbear and installed openssh
Hope this helps,
Cheers,
Sam
Title: Aaaaaargghhhh: Openssh
Post by: lardman on December 13, 2004, 05:44:08 am
Cheers guys,

I'm feeling more relaxed now ;-)

I'll take a look at those two suggestions and see if I can work out why it didn't want to work for me.


Si