Other features of ssh config

Overview:

  • Teaching: 20 min
  • Exercises: 0 min

Questions

  • How else can I use ssh config to make my life easier?

Objectives

  • Know that you can use ssh config to store connection properties to allow you to use them more easily.

More features of ssh config

First we can create an alias service which we can use to ssh to the remote without having to use the full domain name:

Host service
  HostName <hpc-service>
  IdentityFile id_ed25519_service
  User userid_service
  ForwardAgent yes

We have also added HostName, which will be the full name of the server we connect to, so we can now connect to ssh [userID]@<hpc-service> with just ssh serviceA.

Key Points:

  • ssh config allows use to store properties of connections to access them more easily