Author Topic: Aaaaaargghhhh: Openssh  (Read 1571 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Aaaaaargghhhh: Openssh
« 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Aaaaaargghhhh: Openssh
« Reply #1 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

Teletubbie

  • Sr. Member
  • ****
  • Posts: 252
    • View Profile
    • http://
Aaaaaargghhhh: Openssh
« Reply #2 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
SL-5500G
OZ 3.3.6-pre1
Opie 1.1.4

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Aaaaaargghhhh: Openssh
« Reply #3 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva