How to: SSH Keys in Ubuntu
The Secure Shell (SSH) allows you to create secure connections to remote hosts and destination servers. SSH is typically used if you need to access a remote Web host, and you need a secure connection to change settings on that computer. Unlike Telnet or traditional file transfer protocol (FTP), SSH is fully encrypted so you can be assured of the connection status.
Instructions
-
-
1
Click the "Terminal" icon on the desktop.
-
2
Type "mkdir ~/.ssh" -- all commands to be typed should be entered without the surrounding quotes -- and press "Enter."
-
-
3
Type "chmod 700 ~/.ssh" and press "Enter." Type "ssh-keygen -t rsa" and press "Enter." The initial key will now be generated. Press "Enter" when chosen for a filename.
-
4
Enter a pass-phrase to protect your key. This should be a series of words making uses of spaces and capital letters for added security. Press "enter" and confirm the pass-phrase.
-
5
Increase the security level, if you wish, by typing "ssh-keygen -t sa -b 4096" and pressing "Enter."
-
6
Transfer your key to the remote host to complete the setup process. Type "ssh-copy-id USER@HOST" -- replacing "USER" and "HOST" with the relevant username and host address. Press "Enter."
-
7
Log in to that host using "ssh USER@HOST" to utilize your SSH keys.
-
1