To setup a server you’re going to need an SSH key. You can add keys in the Cato Console after signing in by navigating to:
Compute → SSH Keys → Add SSH Key
You might already have an ssh key you’d like to use at
~/.ssh/id_ed25519.pub
Otherwise you can use the ssh-keygen
CLI utility:
ssh-keygen -t ed25519 -C "your_email@example.com"
This should generate two files
id_ed25519
id_ed25519.pub
Copy paste the contents of id_ed25519.pub
to the SSH Public Key field.
You can use the key you generated to log in to your server using the ssh-agent
utility. This allows you to use the key without first copying it to the remote server.
eval $(ssh-agent -s) # start the agent if it's not already running
ssh-add ~/.ssh/id_ed25519 # add your key to the agent
ssh -A user@remote-host # use the -A option to forward the agent to the remote-host
Remember to treat your private key with the same security considerations as you would a password.