Get Started
How To Configure Custom Connection Options for your SSH Client.
PREREQUISITES
The client-side configuration file is located at ~/.ssh/config – the ~ is a universal shortcut to your home directory. Often, this file is not created by default, so you may need to create it yourself. The touch command will create it if it does not exist (and update the last modified timestamp if it does).
touch ~/.ssh/config1Host $MACHINE_NAME
2  HostName $MACHINE_NAME
3
4Host $MACHINE_NAME
5  HostName $MACHINE_IP
6  User ubuntu
7  IdentityFile ~/.ssh/ed25519/id_25519
8  IdentitiesOnly yes
9  ForwardAgent yes
10  StrictHostKeyChecking no
11  UserKnownHostsFile=/dev/null
12  GlobalKnownHostsFile=/dev/null
13  Port 22ssh $MACHINE_NAME