How do I access my site through SSH connection?
- Generate a new SSH key pair from Site Tools > Devs > SSH Keys Manager > Add new > Generate.
- Copy the private key from Site Tools > Devs > SSH Keys Manager > Actions > Private Key and save it in a file on your local machine key.
- Change the permissions of the newly created file to more secure ones. To do that, run the following command in the Terminal:
chmod 600 /Users/youruser/private_key
- Replace /Users/youruser/private_key with the location of your private key text file.
- Load the key on your local machine depending on the OS you are using:
- For Linux/Mac OS, use ssh-add /path/to/your/private_key
- For Windows, open PuTTy then click Load and open the private key file
- Enter the passphrase chosen upon the key generation.
- Connect via SSH depending on the OS you are using:
- For Linux/Mac OS:
ssh USER@HOST_NAME -pPORT
The SSH credentials are available in Site Tools > Devs > SSH Keys Manager. Under Manage SSH Keys, choose the your key and go to the kebab menu > SSH Credentials. For example:
ssh user1@hostname.com -p18765
- For Windows – in PuTTY enter the server hostname. Set the connection type to SSH and port to 18765. Enter your username and press Enter. The SSH credentials are available in Site Tools > Devs > SSH Keys Manager. Under Manage SSH Keys, choose the your key and go to the kebab menu > SSH Credentials.
- For Linux/Mac OS: