Ssh » Linux Ask! | Linux Ask!
Assume you are working at office, you want to browse the example.com securely, you can do so by using a computer at home (e.g. HOME_IP)to build a secure tunnel using ssh.
Then in your browser, type http://localhost and you can view the example.com securely.
Sometimes the SSH server port is not the standard 22 for security reason. So when you connect it, you need to specify the alternative port used with the -p argument.
You might experience this error, especially when you are connecting to a remote Linux machine which has just got re-installed.
Where 192.168.2.36 is the IP you are connecting.
If you want to use scp to copy file to remote machine, but that ssh server is listening at port other than 22, you can use the following command syntax.
Please notes it is -P, not -p.