How to connect to your site using SSH key? #

  1. Select the site you want to connect using SSH.
  2. From the sidebar select “dev tools”.
  3. From dev tools select “SSH setup”
  4. To connect to your site using SSH, follow the steps mentioned.
  5. The 1st step is to download the key.
  6. After downloading the key, you need to set permission for your key. Use the command below to set permission. For Mac: 
    “chmod 600 (path-to-key)” For example if your key is in downloads folder, the command would be like this,
    “chmod 600 /Users/tekyantra/Downloads/testfile.pem”For Windows:
    1. Reset permissionsicacls
    “C:\Path\To\Your\testfile.pem” /reset 

    2. Grant Read access to just the current user icacls
    “C:\Path\To\Your\testfile.pem” /grant:r “$($env:USERNAME):R”  

    3. Disable inheritance (removes other users)
    icacls “C:\Path\To\Your\testfile.pem” /inheritance:r
     

  7. After setting permisison you can connect to the site using the below command.

    For Mac:
    “ssh -i /Users/tekyantra/Downloads/testfile.pem bitnami@1.1.1.1”

    For Windows:
    “ssh -i “C:\Path\To\Your\testfile.pem” bitnami@1.1.1.1”Replace the ip address with your actual ip provided. 

What are your feelings