Normally when using ssh you need to type a long command into the command line, then type your remote user’s password.
This post is about how to set it up so that you don’t need to do all of this. First we’ll set up an ssh keypair, then we’ll set up the server to accept this key. We’ll then create an alias to quickly log in to the server.
Before doing the steps below, make sure you are logged in to the local machine with the user that you want to be able to access the remote machine. It is also helpful if the local machine has a sensible hostname set.