We use cookies to remember your language choice. By using our websites you accept this in accordance with the Cookie section in our Privacy Statement.
Accept
We use cookies to remember your language choice. By using our websites you accept this in accordance with the Cookie section in our Privacy Statement.
Accept

Connect to a Mac using authentication key for SSH

Remotix supports SSH authentication by a pair of keys.

The advantage of this method is that you don’t need different passwords to log on different servers. Once the public key is installed on the server, access will be granted with no password question. You can also authenticate via the personal private key on all servers, needing not to remember several passwords.

After you create two associated keys, the public key has to be stored on the remote computer host, and the private key should be stored securely on your device.

You can generate a pair of keys on a Mac using a built-in utility.


  1. Open Terminal.app.
  2. Execute ssh-keygen.
  3. Enter a passphrase that will be the password needed to use your private key.
  4. Repeat the passphrase.
  5. Open the folder where your pair of keys was saved.
    If you used the default location, you may go there using this command: open ~/.ssh/

To install the public key on the server, add contents of your ~/.ssh/id_rsa.pub to the server’s ~/.ssh/authorized_keys.


  1. Open Terminal.app.
  2. Execute cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys.

When you connect to this Mac, choose the public key authentication type in connection settings and specify a private key’s location.

RELATED INFORMATION
Enable SSH on Mac