Author Topic: Open SSH on Sharp ROM  (Read 2945 times)

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Open SSH on Sharp ROM
« 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
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Open SSH on Sharp ROM
« Reply #1 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
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Open SSH on Sharp ROM
« Reply #2 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
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Open SSH on Sharp ROM
« Reply #3 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?
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

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Open SSH on Sharp ROM
« Reply #4 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
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Open SSH on Sharp ROM
« Reply #5 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.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

jackburton

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
Open SSH on Sharp ROM
« Reply #6 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

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Open SSH on Sharp ROM
« Reply #7 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
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

jackburton

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
Open SSH on Sharp ROM
« Reply #8 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.