OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: suruaZ on May 10, 2004, 12:57:43 am

Title: Open SSH on Sharp ROM
Post by: suruaZ on May 10, 2004, 12:57:43 am
Hi there,

I have a little problem with running of SSH on default Sharp ROM. It always tries to create .ssh folder on read-only /root
I tried to create link to /home/root/.ssh without luck.
My $HOME = /home/root and from the SSH docs appears it must use $HOME/.ssh folder for the work by default so I wonder why it looking for /root/.ssh ?
Is there a solution for this ROM?

Thanks in advance
suruaZ
SL-5500 Sharp ROM 2.38
Title: Open SSH on Sharp ROM
Post by: tumnus on May 10, 2004, 02:57:49 am
Which OpenSSH package did you use? This one works fine for me: http://www.killefiz.de/zaurus/showdetail.php?app=1035 (http://www.killefiz.de/zaurus/showdetail.php?app=1035)
Title: Open SSH on Sharp ROM
Post by: suruaZ on May 10, 2004, 07:48:45 am
I use exactly the same package - OpenSSH 3.6.1p1, from this site (did you know other?).
Each time I log in it says \"Couldn\'t create /root/.ssh folder\" then after manual confirming that I trust the host connected it says \"Couldn\'t create file /root/.ssh/known-hosts\".

suruaZ
Title: Open SSH on Sharp ROM
Post by: lardman on May 10, 2004, 07:57:21 am
Are you sure that /root is read-only, and that the problem\'s not actually that you are running as zaurus and so don\'t have access to /root due to your not being the superuser?
Title: Open SSH on Sharp ROM
Post by: suruaZ on May 10, 2004, 08:27:39 am
Quote
Are you sure that /root is read-only


Yes, I\'m sure. As I understand from the FAQ everything that is not in /home are ROM and read-only. Also I have tried mkdir /root/.ssh and got the same - read only.

Quote
and that the problem\'s not actually that you are running as zaurus and so don\'t have access to /root due to your not being the superuser?


On the Sharp ROM 2.38 I have no options - I\'m root always.

suruaZ
Title: Open SSH on Sharp ROM
Post by: tumnus on May 10, 2004, 08:35:26 am
/root is readonly on the Sharp ROMs, regardless of the version.

It might be a problem to do with the fact that the OpenSSH package you\'re using is for the Sharp 3.x ROMs and you\'re using a 2.x ROM.
Title: Open SSH on Sharp ROM
Post by: jackburton on May 10, 2004, 09:44:19 am
Did you try changing the root entry in /etc/passwd?

Change the line:
Code: [Select]
root:x:0:0:root:/root:/bin/sh
to
Code: [Select]
root:x:0:0:root:/home/root:/bin/sh

While you\'re at it, change your default shell from /bin/sh to /bin/bash like this:
Code: [Select]
root:x:0:0:root:/home/root:/bin/bash
Title: Open SSH on Sharp ROM
Post by: suruaZ on May 10, 2004, 12:32:26 pm
Thanks jackburton! This did the job!
What advantages bash over sh?
The only I see now is promt changed from sh# to bash#  

Thanks again,
suruaZ
Title: Open SSH on Sharp ROM
Post by: jackburton on May 10, 2004, 01:38:43 pm
Quote
Thanks jackburton! This did the job!
What advantages bash over sh?
The only I see now is promt changed from sh# to bash#  

Thanks again,
suruaZ


Bash is nicer  :wink:  *Things like better history and tab completion.

Also, some scripts/utils need the extensions in bash not available in plain old sh. Most linux distros have bash as default anyway.

I do it mainly for consistency across my linux platforms.