Password-less login using putty on Nokia E-Series (e61)
This document will tackle on how to set password-less SSH login on Linux (Ubuntu) using RSA key
On occasion, I have the need to establish trust relationships between Unix/Linux boxes so that I can administer the box. Because OpenSSH allows you to run commands on remote systems, showing you the results directly, as well as just logging in to systems it’s ideal remote administration tool. One thing that you probably won’t want is to do though is store the remote system’s password in the script. Instead you’ll want to setup SSH so that you can login securely without having to give a password. In short, here’s how you leverage SSH to do that:
::On the PC/Server::
- First, we need to install putty tools
% sudo aptitude install putty-tools
- This can be done as a normal user, create a passwordless key
% ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/kramfs/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/kramfs/.ssh/id_rsa.
Your public key has been saved in /home/kramfs/.ssh/id_rsa.pub.
- Put the public part in your authorized_keys and restrict access to make sure that only you can view it
% cat .ssh/id_rsa.pub >> ~/.ssh/authorized_keys
% chmod 600 ~/.ssh/authorized_keys
- Convert the private key file to putty format
% puttygen .ssh/id_rsa -o putty.ppk
::On the Phone::
In order to use the private key (putty.ppk) file, we need to move/copy it to the E61 via Bluetooth or USB cable. I saved it in C:/System/Apps/putty/putty.ppk
- Start up putty, select Options > Settings and tools > Authentication
- Put in your username, Add the Private key file.
- Under Options > Settings and tools > Connection, add the host and port
- We will save it as the default setting: Options > Settings and tools > Save as default
- And now the fun part: Options > Connection > Connect
Let me know how this helps you with your (mis)adventure. Happy hacking….