ssh通过http代理访问服务器
来源:互联网 发布:hl5590dn网络共享 编辑:程序博客网 时间:2024/05/01 06:36
centos 7,root user
install:Get Corkscrew
download: https://pkgs.org/download/corkscrew
Add ProxyCommand to your SSH config file:
You may or may not have a configuration file for SSH already. It should be located in $HOME/.ssh/config and is a simple text file. Create one if it does not exist and add lines such as these to it:
Host *
ProxyCommand corkscrew http-proxy.example.com 8080 %h %p
… replacing http-proxy.example.com with the name or address of your http proxy and possibly replacing 8080 with the port on which the proxy listens, which may be 80 or even some other port. The %h and %p will be replaced automatically by SSH with the actual destination host and port.
These two lines tell the SSH client to start another program (corkscrew) to make the actual connection to the SSH server. The Host * line says that this will be done for ALL hosts. If you wish to restrict the hosts for which this will be done, you can put a limited form of regular expression there. See the ssh_config(5) man page for more information. If you don’t have corkscrew in your path or have put it in a non-standard location, you may specify an absolute path to corkscrew in that file as well.
example
ssh username@ip -p port
scp -P port -r ./test username@ip:/home/test/
from:
https://www.mtu.net/~engstrom/ssh-proxy.php
- ssh通过http代理访问服务器
- java通过代理访问http
- ssh反向代理,让内网的服务器可以通过外网访问
- Android 通过http访问服务器
- Android 通过http访问服务器
- 3.18 通过http访问服务器
- Android 通过http访问服务器
- Android 通过http访问服务器
- Android---通过http访问服务器
- Eclipse 通过代理访问SVN服务器
- win7通过ssh访问linux服务器
- 搭建通过 ssh 访问的 Git 服务器
- Xshell通过SSH密钥、SSH代理连接Linux服务器详解
- Xshell通过SSH密钥、SSH代理连接Linux服务器详解
- github的ssh通过http代理来配置实现
- SSH反向代理实现外网访问内网服务器
- 通过node.js连接http代理访问外网
- C/C++程序实现通过http代理访问网页内容
- Maven
- css3中nth-child选择器和nth-of-type选择器的区别
- 两台相同电脑的版本号相同的IE8浏览器的不兼容问题,一个正常,一个div横向拉长(已经解决)
- Qt 中的事件简述
- 马化腾: 你想想不充钱能不能玩这游戏? 丁磊:你仔细想想不充钱能不能玩这游戏? 张栋:CNM我就问你不充钱能玩我运营的游戏吗?
- ssh通过http代理访问服务器
- HDU 1203 I NEED A OFFER!(01背包)
- 使用TextureView和SurfaceTexture预览Camera 基础拍照demo
- @Override报错问题。
- 量子行者 2016 ChinaJoy
- C++标准库和标准模板库
- 拓扑排序
- JQUERY 图片放大镜+左右滚动特效,适应商城
- 安卓数据库SQLite详解