Skip to content
AcuGIS Connect Documentation

SSH Authentication

Each profile uses one authentication method: an existing private key, a key generated in AcuGIS Connect, the SSH agent, or an SSH password. The private key stays on this computer. A password or passphrase is never written to profiles.json or to connect.log.

Choose the method in SSH authentication while you add or edit a connection.

Generate a new SSH key

Use this when you do not already have a key for the server.

  1. Choose Generate New SSH Key.
  2. Leave the key name as acugis_connect_ed25519, or enter another name.
  3. A passphrase is optional. If you enter one, confirm it. Select Remember passphrase in the operating system credential store if you do not want to type it on every connection.
  4. Click Generate Key. The key is not created until you click that button.
  5. In SSH Key Created, click Copy Public Key.
  6. Click View Setup Instructions if you need the steps for the server.

AcuGIS Connect writes an Ed25519 key pair on this computer:

  • Windows: %USERPROFILE%\.ssh\
  • macOS: ~/.ssh/

The private key is not uploaded, not added to the SSH agent, and not installed on the server. An existing key file is not overwritten. If the name is already used, choose the suggested name and generate again.

Generating the key does not grant access. The server has to authorize the public key first. Add that public key as a new line in ~/.ssh/authorized_keys for the SSH account in the connection. View Setup Instructions shows those steps and Copy Setup Command copies a command that appends the public key on the server. If you cannot install keys yourself, send only the public key to the server administrator. Do not send the private key.

After the key exists, the profile uses it as a private-key connection. Save the connection, then click Connect.

Use an existing SSH key

  1. Choose Use Existing SSH Key.
  2. Click Browse and select an OpenSSH private key, such as id_ed25519, or type its path.
  3. If the key is encrypted, enter the Key passphrase. Select Save passphrase in the operating system credential store to keep it for this profile.
  4. Click Save.

If a matching .pub file is next to the private key, Copy Public Key is available and the public key fingerprint is shown. You can still connect when the .pub file is missing.

A saved passphrase belongs to that profile. Deleting the profile deletes the saved secret. A wrong passphrase is reported as an authentication failure and is not written to the log.

SSH agent

Choose SSH Agent when the operating system agent already has the key. AcuGIS Connect then does not read the private key file.

  • On Windows, the OpenSSH Authentication Agent must be running. AcuGIS Connect uses the openssh-ssh-agent named pipe. Add the key with ssh-add before you connect.
  • On macOS, the agent socket in SSH_AUTH_SOCK must be available to the session that launched AcuGIS Connect. ssh-add -l lists the keys the agent can offer.

If the agent is not running, the connection stops. AcuGIS Connect does not fall back to a password.

SSH password

Choose SSH Password for an account that uses password authentication.

Enter the password and select Save password in the operating system credential store if you want it remembered for this profile. Otherwise AcuGIS Connect asks again when you connect. A rejected password can be entered again. The password is not shown in the error text.

Select Remove saved password while editing when you want to forget the stored password.

Where secrets are stored

Saved SSH passwords and private-key passphrases use the service name AcuGIS Connect:

  • Windows Credential Manager
  • macOS login Keychain

Empty secrets are refused. Database passwords and AcuGIS Backup web passwords are not stored.

Host keys

The first connection to a server opens Trust this SSH server? The dialog shows the key type and the SHA256 fingerprint. Compare that fingerprint with one from the server administrator, then click Trust and Connect. For the file manager, the same check uses Trust and Open.

The approved key is written to AcuGIS Connect's own file:

%APPDATA%\AcuGIS\Connect\known_hosts

On macOS:

~/Library/Application Support/AcuGIS/Connect/known_hosts

Your OpenSSH known_hosts file is also consulted. AcuGIS Connect never modifies it.

If the server key changes, the connection is refused and the dialog SSH host key changed shows the presented fingerprint and the expected fingerprint. The stored key is not replaced. Click Forget Saved Key only after you have confirmed the new fingerprint out of band, then connect again and approve the new key. Forgetting a key removes only the line in AcuGIS Connect's file.

A changed key can mean the server was rebuilt, or that the connection is being intercepted. Do not approve a new fingerprint you cannot verify.

Authentication problems

What you see What to check
SSH authentication failed Username, key, and password. A generated key works only after its public key is in authorized_keys.
SSH password is required, or SSH private key passphrase is required Enter the secret. Select the checkbox if you want it saved.
SSH agent is unavailable On Windows, start OpenSSH Authentication Agent and run ssh-add. On macOS, confirm ssh-add -l from the same login session.
SSH private key could not be used The path must be an OpenSSH private key that this account can read.
SSH host key for the server has changed Confirm the new fingerprint, then use Forget Saved Key and connect again.