Application:OpenSSH

From WebOS Internals
Revision as of 02:53, 6 December 2009 by Vince42 (talk | contribs)
Jump to navigation Jump to search

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on.

Please refer to the OpenSSH Home Page and read the OpenSSH Manual Pages before using this package.

Optware installs openssh under /opt, so you should replace any references to /bin, /sbin, and /etc in the OpenSSH documentation with /opt/bin, /opt/sbin and /opt/etc respectively.

You can use the Terminal application to create your secure SSH keys for use with OpenSSH. Your public ssh key needs to be stored in /home/root/.ssh/authorized_keys to be read by OpenSSH to allow root login via ssh keys.

You can use:

/opt/bin/ssh-keygen

to create the private and public keys, and then:

mv /home/root/.ssh/id_rsa.pub /home/root/.ssh/authorized_keys

to move the public key to become the /home/root/.ssh/authorized_keys file.

If you should not already have done it, you will need to setup a password for root, as OpenSSH will otherwise refuse the connection with the error message "The server refused our key". You can change the root password with

rootfs_open -w
passwd root
Changing password for root
New password:yourpasswordhere
Retype password:yourpasswordhere
Password for root changed by root

where the italic text is the shell output you will see.

Now the secret key needs to be transferred to the workstation you want to log into the Pre. First copy the secret key to the accessible area with

cp /home/root/.ssh/id_rsa /media/internal/id_rsa

Tap on the USB symbol at the bottom of the Pre screen and choose 'USB Device' in order to access the media. Move the secret key to your workstation and follow the terminal software's instructions on how to make this new secret key known to the terminal.