Skip to content

Configuring SSH

Setting a Default Username

If your username is different on your tilde than on your personal computer, you may want to specify a default username in ~/.ssh/config. That can be done by adding the following entries:

    User user

Using a Tilde-Specific key

Step 1: Generate Your Key

Generate a key, except outputting to a Tilde-specific location.

mkdir -p ~/.ssh/
ssh-keygen -a100 -ted25519 -f ~/.ssh/ -C ''

Step 2: Authorize Your Key

If you have yet to sign up to your desired Tilde, send the public key (~/.ssh/ to the admin.

If you already have an account, you can authorize your new key by adding it to, or replacing your old key in, ~/.ssh/authorized_keys.

$ scp ~/.ssh/
$ ssh
tilde$ cat >> .ssh/authorized_keys
tilde$ rm

Step 3: Configure SSH

To make ssh(1) only use that key for that tilde, you can add the following lines to ~/.ssh/config:

    IdentitiesOnly yes
    IdentityFile ~/.ssh/

See Also

SSH over Tor