How does Rarity install over SSH?

Instead of running the install command yourself, you can give Rarity the server's address and an SSH sign-in. Rarity signs in once, runs the install command and shows you what it printed. The password or key is used for that one sign-in and never stored.

This is the second way to connect a server, for when you'd rather not sign in to it yourself. You start the same way, by naming the server in Connect a server, then choose to let Rarity install it.

What you enter

  • The server's host, its public IP address or host name.
  • The username to sign in with, such as root or an account that can use sudo without a password prompt in the way.
  • A password, or a private key. A key must be unencrypted, in OpenSSH or PEM format. Keys with a passphrase and PuTTY keys aren't accepted.
  • The SSH port, 22 unless your server uses another.
  • If you like, the server's host key fingerprint, the SHA256: line that ssh-keygen -lf prints for its host key. Rarity then refuses to sign in to any server whose key doesn't match.

What Rarity does with them

  • It signs in once, runs the install command and signs out.
  • The password or key is held in memory for that sign-in only. It's never saved or written to a log.
  • The server's one-time token is passed to the installer privately, never on a command line other users of the server could see.
  • It only signs in to public addresses, never to private or internal ones.

What you see

  • Succeeded with the last lines the installer printed. The server shows Online once it checks in.
  • Failed with what the installer printed. Why did the install command fail? explains its errors.
  • Still running when the installer took longer than Rarity waits. It carries on on the server, so give it a few minutes.
  • An error before anything ran, when Rarity can't find the host, can't connect, isn't let in with those details, or finds a host key that doesn't match.

If Rarity couldn't sign in, the install command you were shown still works, so you can run it yourself. Once Rarity has signed in, it gives the installer a new one-time token, and the command you were shown stops working. Ask for a new one on the server's page to run it yourself.

Change the password afterwards, or remove the key from the server, if you made them only for this. Rarity no longer needs them once the service is installed.

Limits

Rarity runs one SSH install for you at a time, and a few in a row before it asks you to wait a little.