How to access a server using PuTTY.



We often need to access our files in server for various purposes like to make code changes or adding a new code, copy the production code in local machine for bug fix or feature enhancement etc. For these things you need to establish a connection with server by using your server login credentials. We will explain the process to access/login to your server with username-password and username-ssh keys/ private keys. So let’s start.

To Download PuTTY: Visit to https://www.putty.org/ and select the PuTTY for your operating system type.

 

1. Login to server using username and password - PuTTY.

i) Open your PuTTY application and the console will look similar to the image below.

ii) Provide Host Name (or IP address) and click Open. A PuTTY Security Alert will popup if you are making this connection for first time, click Yes.

iii) PuTTY console will open, now to make connection enter your username and password.

 

2. Login to server using username and ssh keys/ private keys - PuTTY.

i) Open your PuTTY application.

ii) Provide Host Name (or IP address) and then from Connections select SSH and then Auth. Browse for your SSH keys and select the file.

iii) And click Open

iv) PuTTY console will open, now to make connection enter your username. A message will pop up like below and connection will be established.

Authenticating with public key "imported-openssh-key"

 

3. If the ssh keys provided by hosting provider is not in .ppk format. You can convert your keys in .ppk format by using below process.

Note: PuTTY only support .ppk format

i) Open your PuTTYgen application. This application will be downloaded in the same package if you download PuTTY from https://www.putty.org/

ii) Click on Conversions and then on Import key. Browse for the keys and import it.

iii) Save these keys as private keys by selecting "Save Private Key" option.

 

We have covered both types - connection using username and password and connection using username and ssh keys. That is all for this article. Leave a comment below if you need any assistance or any type of additional information regarding the process explained above. Good Bye!


Published : June 30, 2020