Solving “Network Error: Connection Refused” errors when trying to Putty into LAMP stack
Trying to putty into your server, you may get a “Connection Refused” error. That’s usually because the Open SSH server and client aren’t installed, just run this at the command line and restart Apache.
sudo apt-get install openssh-server openssh-client