How to access a remote Linux server on Windows via SSH using PuTTY integrated into WinSCP

To access the terminal of your remote Linux server from your local Windows machine and run some commands like “sudo apt …”, “htop”, “ncdu”, and many others, you’ll need an SSH client like PuTTY.

And the best way to do that is by integrating it into the WinSCP client because this way, you can manage your FTP/SFTP/SSH (and even other protocols) accesses in the same place.

So, to make the integration, follow these steps:

  1. Before everything, download the WinSCP client and install it;
  2. Download the PuTTY client and install it – note down the installation path;
  3. On the WinSCP, access the “Preferences” screen (you can do that by clicking the gear icon on the top of the main screen or you can use the “New Session > Tools > Preferences” path) and after that go to the “Integration > Applications” section;
  4. On the “PuTTY/Terminal client path” option insert the putty.exe path (where you previously installed), also make sure that the “Remember session password and pass it to PuTTY (SSH)” option is checked and click “OK” to save;
  5. Now every time you want to acces a server via SSH, you can right-click on a server from the WinSCP list of servers (already added previously by you) and choose “Open in PuTTY”. Or, if the server is already open on the WinSCP graphic screen, just use the “CTRL+P” keyboard shortcut.

IMPORTANT: When accessing the server for the first time via PuTTY or WinSCP, you will be asked to confirm an authentication cryptographic key.

To complement this tutorial and let your workflow even better, check this another tutorial:

How to edit files from a remote Linux server on Windows via FTP or SFTP using WinSCP and your preferred code editor – Glauber Silva

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *