Home
/
Advanced Site Tools
/
SSH
/
How do I access my site through SSH connection?

How do I access my site through SSH connection?

  1. Generate a new SSH key pair from Site Tools > Devs > SSH Keys Manager > Add new > Generate.
  2. 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.
  3. 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.
  4. 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
  5. Enter the passphrase chosen upon the key generation.
  6. Connect via SSH depending on the OS you are using:
    • For Linux/Mac OS – ssh USER@HOST_NAME -pPORT. Substitute USER with your username, HOST_NAME with the server’s hostname and PORT with 18765. For example:
      ssh user1@siteground300.com -p18765
    • For Windows – in PuTTY enter the server’s hostname. Set the connection type to SSH and port to 18765. Enter your username and press Enter.

Share This Article