Translations:SSH configuration file/2/en
Jump to navigation
Jump to search
On Linux and macOS, you can modify your local SSH configuration file to change the default behaviour of ssh
and simplify the login procedure. For example, if you want to log into narval.computecanada.ca
as username
using an SSH key, you may need to use the following command:
[name@yourLaptop ~] ssh -i ~/.ssh/your_private_key username@narval.computecanada.ca
To avoid having to type this command each time you want to connect to Narval, add the following to ~/.ssh/config
on your local machine:
Host narval User username HostName narval.computecanada.ca IdentityFile ~/.ssh/your_private_key