Computer network Use corkscrew for remote connection under Linux

Source: Internet
Author: User
Tags putty ssh client

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.