zoukankan      html  css  js  c++  java
  • debian系统通过corkscrew代理软件进行ssh代理和centos系统通过connect-proxy设置ssh代理

    debian系统通过corkscrew代理软件进行ssh代理


    虚拟机通过台式机上的ccproxy代理上网,安装软件什么的没有问题,后面ssh的时候没办法代理

    export ftp_proxy=http://10.11.0.148:808
    export socks_proxy="socks://10.11.0.148:1888/"
    export http_proxy=http://10.11.0.148:808
    export https_proxy=https://10.11.0.148:808


    # 可以设置代理通过http的代理进行ssh连接,ssh代理端口是808
    # 安装代理软件 apt-get install corkscrew

    root@jenkins-6d657f7996-m8t8m:/# more ~/.ssh/config
    Host *
        ProxyCommand corkscrew 10.11.0.148 808 %h %p

    echo "Host *"> ~/.ssh/config
    echo "    ProxyCommand /usr/bin/corkscrew 10.11.0.148 1888 %h %p" >> ~/.ssh/config

    centos中设置ssh通过http代理

    # 安装代理工具
    # yum install -y connect-proxy

    # 配置代理
    [root@server01 ~]# vim ~/.ssh/config
    Host gitee.com *.gitee.com
        ProxyCommand connect-proxy -H 10.11.0.148:808 %h %p

  • 相关阅读:
    PHP中的error
    回调函数与PHP实例
    PHP的基本入门知识
    Java script OOP——浅谈
    实现单行或多行文本溢出显示省略号
    ECharts
    session management会话管理的原理
    easyui 入门指南
    H5视频/音频
    CSS清除浮动各种方法
  • 原文地址:https://www.cnblogs.com/reblue520/p/13731221.html
Copyright © 2011-2022 走看看