There's a invisible directory in your home directory for storing SSH keys. Let's go there and list the contents.
Looks like we don't have one defined yet. Let's make one using our email address as the key.
ssh-keygen -t rsa -C "firstname.lastname@example.org"
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user_name/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user_name/.ssh/id_rsa.
Your public key has been saved in /home/user_name/.ssh/id_rsa.pub.
The key fingerprint is: gibersih email@example.com
The key's randomart image is: +--[ RSA 2048]----+ | giberish | +-----------------+
authorized_keys id_rsa id_rsa.pub known_hosts
ssh -gvN -L 5432:localhost:5432 brillo.stamen
A bunch of stuff streams by...
debug1: Connecting to brillo.stamen [192.168.1.5] port 22.
debug1: Next authentication method: password
Now enter the account password:
debug1: Authentication succeeded (password).
More stuff streams by...
If the connection keeps being lost:
As an option on starting the connection, or modify your general config file.
Setup agent forwarding (either by using
ssh -A or adding
ForwardAgent yes to $HOME/.ssh/config) and it will transparently use the keys set up on your local machine.
Last edited by nvkelso,