- Enter in the command
~/.ssh/config
into the terminal (in the examples below I will be using the terminal in VSCode). If you get a message saying permission denied: try using the commandvim ~/.ssh/config
. - Press the
I
key to edit the contents of the.ssh/config
file and insert the following into the file: - Note: The
IdentityFile
line should only be added if you are unable to complete Step 2. - Once you're done editing the file, press
esc
to stop editing and enter:wq
to save your changes and exit.