Generating ssh keys

Generate a ssh key to connect without need for a password.

Multiple keys: a key per host

You can generate as many keys as you want, and set up ssh to use a different key for every host.

# What you will write in the ssh command as hostname (ssh user@hostname). Can be multiple values separated by spaces to match multiple hosts or have aliases
Host {host}
# Where the connection will actually be made (actual address/name of the server). Can be %h if you want it to have the value specified in the command line (useful for using the same key on multiple machines)
Hostname {actual address}
# The identity used for this connection
IdentityFile {path to you ssh secret key}