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:
- Before everything, download the WinSCP client and install it;
- Download the PuTTY client and install it – note down the installation path;
- 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;
- 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;
- 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: