Difference between revisions of "Application:OpenSSH"

From WebOS Internals
Jump to navigation Jump to search
Line 13: Line 13:
 
  /opt/bin/ssh-keygen
 
  /opt/bin/ssh-keygen
  
to create the private and public keys, and then:
+
to create the private and public keys. Accept the default filename by pressing Enter at the prompt. Enter a passphrase for your private key file. You will use this passphrase later, so remember it. After the key file is generated:
  
 
  mv /home/root/.ssh/id_rsa.pub /home/root/.ssh/authorized_keys
 
  mv /home/root/.ssh/id_rsa.pub /home/root/.ssh/authorized_keys

Revision as of 15:55, 9 January 2010

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.

If you are connecting to your webOS device from a Windows host computer, please read the Secure Linux/UNIX access with PuTTY and OpenSSH Tech Tip and follow those instructions for generating your SSH keys. For the section "Install public key on Linux system", you will need to put the "Public Key for pasting into OpenSSH authorized_keys file" into a /home/root/.ssh/authorized_keys file.

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.

If you are not able to follow the Secure Linux/UNIX access with PuTTY and OpenSSH Tech Tip to generate your SSH keys, you can use the Terminal application to create your secure SSH keys for use with OpenSSH directly on your webOS device. 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. Accept the default filename by pressing Enter at the prompt. Enter a passphrase for your private key file. You will use this passphrase later, so remember it. After the key file is generated:

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.

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.