
Notes on debugging ssh connection problems
Add this line to the file: ClientAliveInterval 60. To set the SSH keep alive option on the server: How do I stop ssh from disconnecting sessions? This is setting is sometimes referred to as Keep-Alive or Stop-Disconnecting-So-Much in other clients. You can configure the ssh client to automatically send a protocol no-op code code every number of seconds so that the server won’t disconnect you. How to Fix the SSH “Connection Refused” Error How do I fix SSH connection refused error? Use VNC to gain access if internet connection is established but SSH is not. As with most network connectivity problems the first step should be to ping your server. Now you can manage your server as usual.STEPS TO TRY WHEN TROUBLESHOOTING SSH CONNECTIONS: If you configured everything correctly, you will see password prompt inside of PowerShell window. Save the script and open it in PowerShell. Use it in case when your remote machine has been passwordless configured. Open it in Notepad or your other favorite text editor and put there the following command: plink -ssh -i Now let's create a PowerShell script file with default extension of "PS1". If you have it installed, go ahead and run the following command: choco install putty You can download installable MSI packet or portable version from here, but I prefer to use Chocolatey – a Windows package manager. So, first of all, we still need PuTTY, but be more concrete – its component – plink. Windows PowerShell doesn't support SSH from the box. Fortunately, there is a way how to involve PowerShell easily. It includes GUI client, but, with all my respect, its user experience is pretty terrible.
Probably most widely used is PuTTY – a free SSH and telnet client software for Windows.
If you need to manage a Linux machine remotely from Windows, you have got pretty small number of alternatives.