Skip to content

Instantly share code, notes, and snippets.

@gasparian
Created March 8, 2022 12:01
Show Gist options
  • Select an option

  • Save gasparian/a143b8a68e1e558108e23214a36c0bdc to your computer and use it in GitHub Desktop.

Select an option

Save gasparian/a143b8a68e1e558108e23214a36c0bdc to your computer and use it in GitHub Desktop.
Configure access to remote machine via pem key

In order to connect to the remote machine without the need to provide *.pem key each time, you can add these lines to the ~/.ssh/config:

Host 1.2.3.4
     User root
     IdentityFile /path/to/my.pem

Also, if you're using midnight commander, you can now freely connect to the remote machine as well by just specifying user and host:

[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment