Recently re-installed the computer, using SSH remote connection Machine room machines, the connection time-out, and then ping the Machine room, no response, that is, my computer and computer room is not connected, and then ping room of the gateway, but can ping through. So, we need to find a way to connect the room by proxy: corkscrew.
1 Installing corkscrew
sudo apt-get install corkscrew
2 Configuring Corkscrew
Create a new. Corkscrew-auth in the user's home directory, and place the user name and password for the remote machine in the following format:
username:passwd
In the user home directory under the. SSH directory to create a new config file, if there is no. ssh directory, you can build it, add the following content:
Host *proxycommand corkscrew proxyhostname proxyport%h%p/home/username/.corkscrew-auth
Proxyhostname and ProxyPort need to be modified to the proxy IP and port number, username to the user name.
3 Test SSH
SSH [email protected]*.*
4 Summary
Once the system is installed, SSH is already in use, but using SSH or other connection tools, such as the Remmina remote connection client, cannot use the proxy. Corkscrew allows a secure SSH session to be established through an HTTP proxy, or, of course, the Putty SSH client, which also has a proxy function, but its interface is too ugly for Linux.
Resources:
How to use SSH Via HTTP Proxy using corkscrew in Ubuntu