How do I set up a SSH key to connect to

You must perform these steps while connected to the University network or the VPN

Open a terminal application

  • Windows 10/11 
    • Click on the start menu
    • Type in CMD and open
  • Mac
    • Open Applications
      • Utilities
      • Terminal
  • Linux
    • Terminal
  • Type in the following command and hit enter ssh-keygen -t ed25519
  • Copy the contents of
    • If you are using Windows open with notepad
  • ssh (e.g. 
  • Add the contents of to .ssh/authorized_keys

Once you setup your key you will then be able to connect using it in future.

Contact for this page:
Information Services, Aberystwyth University, Hugh Owen Library, Penglais, Aberystwyth, SY23 3DZ
Tel: 01970 62 2400 Email: