Skip to main content

Accessing Servers

ABAIR servers are protected using Public-key Cryptography. To access a server, you will need to follow these steps:

1. Generate Keys

Generate a public and a private key on your own machine. On linux and Mac, you can do this by running the following command in a terminal:

ssh-keygen -t ed25519 -C "your_email@example.com"

This will create 2 files:

  1. Public Key - id_ed25519.pub
  2. Private Key - id_ed25519

2. Secure you Private Key

Set strict file permissions on the private key so only you can read/write:

chmod 600 ~/.ssh/id_ed25519

3. Send Your Public Key

Contact the admin of the Server you intend to access to transfer the public key. The admin will add this to the authorized_keys file in the /home/your-name/.ssh/ directory.

4. Log in

You should be able to SSH into the Server without being prompted for a password.

5. Add Further Keys

If you use multiple machines to access the Server, you will need to create keys on each machine and append the public key to the authorized_keys file.

6. Optional Extra

Create a config file on your machines so that you don't have to remember and type ip addresses and names.

ssh my-name@134.226.72.202

becomes

ssh phoneticsrv3

Further Information

A detailed tutorial on Generating and using ssh keys can be found here