The SSH remote profile requires passwordless keyfile authentication to the remote server. The configuration of this authentication method is different depending on the operating system and SSH server used.
Configuration Steps
Open a command prompt.
Generate an SSH key pair. To do this, type:
ssh-keygen
At the prompt, select a location to save the key pair. The default location is usually fine, so press Enter.
When prompted to enter a passphrase for the key, skip this step to set up passwordless authentication.
You must copy the public key to the remote server you want to connect to. To do this, type the following command and press Enter, replacing
user
andserver
with your own username and server information:ssh-copy-id
user
@server
Note: You can manually copy the public key to the remote server. To do this:
Navigate to the user's directory on the remote machine.
Create the .ssh folder if it does not exist.
Create a file called authorized_keys and paste the contents of your public key file into it or append it if the file already exists.
At the prompt, enter your password for the remote server.
The public key is copied to the remote server.
Test the connection by typing the following command and pressing Enter, replacing
user
andserver
with your own username and server information:ssh
user
@server
If everything is set up correctly, you can connect to the remote server without entering a password.
Troubleshooting
If the passwordless login does not work after following these steps, try the following:
Check the sshd_config file (Linux: /etc/ssh/sshd_config, Windows: C:/ProgramData/ssh/sshd_config).
Consult your IT before making modifications to this file.
Set PubkeyAuthentication to yes.
Make sure the AuthorizedKeysFile path is correct .
Set StrictModes to no.
Make sure the SSH server is running on the remote. Check that it is possible to use a standard SSH connection with a username and password. If not, the SSH server is not set up correctly.