How to connect to website through SSH in Siteground

Posted on: September 15th, 2023
By: Tadeo Martinez

Here’s a video tutorial:

Go to Site Tools > Devs > SSH Keys Manager > Add new > Generate

Save the password but it’s going to ask you for it again when you’re doing the SSH connection.

Once created, click on the vertical ellipsis, view the private key, copy the key and save it on your computer. There’s no extension needed and you can name the key however you’d like.

When you save the key either in VSC or Text Edit it might add an extension (rtf or txt most likely), you can update it to the proper format with:

mv /Users/youruser/private_key.txt /Users/youruser/private_key

Don’t forget to change permissions:

chmod 600 /Users/youruser/private_key

Go to your terminal and type the following:

ssh -i /path/to/key user@hostname -p18765

Now you should be able to successfully connect to your website using SSH.

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published. Required fields are marked *