SSH Key Setup instructions (User)

From Cnwiki

Jump to: navigation, search

Key-Based SSH Logins

To remotely access a server through SSH use a key-based authentication.To have access you need to be provided with a username and a password. In this section the instruction on how to set the key-based authentication both for Linux(Ubuntu) and Windows.

Linux (Ubuntu)

1) Get the username and the password from one of the admins of the relevant server.

2) Generate the keys:

~$mkdir ~/.ssh

~$chmod 700 ~/.ssh (not required with Ubuntu)

~$ssh-keygen –t rsa –b 4096

3)Transfer the client key to host: ~$ssh-copy-id username@<server-ip-or-name>

Now you should be able to log in to the server (~$ssh username@<server-ip-or-name>). For more information you can check Ubuntu website[1]

Windows

In [2] there is a full explanation of how to set a key-based SSH login in Windows using PuTTY.

Personal tools