Est. 2007
Turenki

SSH keys

Use SSH keys when connecting to a server. SSH keys are more secure than passwords.


Keys are a bit harder to setup, but very simple to use. Here's how to use keys on a Mac with code editor. First you need to create a key pair.

On a Mac .ssh folder is located at /Users/USERNAME/.ssh/. Private key is called id_rsa, public key is id_rsa.pub. Private key stays on your device. Public pair must be copied to a remote server.

Go to .ssh folder and open id_rsa.pub in a text editor and copy the key.

Finally you need to tell your code editor to use key instead of password.

You can use same key pair to connect different servers. SSH connection can come only form the device where the private key is located.

SSH keys

Blog articles

60°55’1.2”N
24°38’30.4”E