This article will walk you through accessing your server via SSH using SSH key pair.
Step 1:
Download PuTTY: If you haven’t already, download PuTTY from the official website.
Install PuTTY: Follow the installation instructions to set up PuTTY on your computer.
Once PuTTY is installed, you can use it to generate SSH keys. For instructions on generating SSH keys with PuTTY, check out our guide on Generate SSH Keys using PuTTY.
Step 2:
Once you have SSH Keys. you can then gather your server IP or Hostname, SSH port, and Username.
You can find these details after adding the public Key to your WPO portal and then going to My Sites > Site details > SSH Access.
Here is the breakdown of the SSH command "ssh nginx@74.121.207.61 -p2222"
Username: nginx
Hostname: 74.121.207.61 (Server's IP)
Port: 2222
Step 3:
Next, launch the PuTTY application to enter server details.
In the Session category, enter the Host Name (or IP address) of your server.
Ensure the Port is set to
2222
Make sure the Connection type is set to SSH.
Step #4:
Next, you will need to load your SSH Private Key.
In the Category menu on the left, navigate to Connection > SSH > Auth.
Click on Browse under the Private key file for authentication.
Select the .ppk
private key file you saved earlier.
Step #5:
Return to the Session category from the left Menu.
Save Your Session (Optional):
Enter a name in the Saved Sessions field and click Save to store your settings for future use.
Click Open to start the SSH session. A terminal window will appear, prompting you for your username. You can use the 'nginx' as the user.
If you set up your SSH key correctly, you should now gain access to the server without needing to enter a password.
Feel free to reach out to us if you need any further help. We will be happy to assist.