apache_conf SSH

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf SSH相关的知识,希望对你有一定的参考价值。

# Some ssh-agent magic
export SSH_AUTH_SOCK=/tmp/.ssh-socket

ssh-add -l >/dev/null 2>&1

if [ $? = 2 ]; then
    # Exit status 2 means couldn't connect to ssh-agent; start one now
    rm -rf /tmp/.ssh-*
    ssh-agent -a $SSH_AUTH_SOCK >/tmp/.ssh-script
    . /tmp/.ssh-script
    echo $SSH_AGENT_PID >/tmp/.ssh-agent-pid
fi


function kill-agent {
    pid=`cat /tmp/.ssh-agent-pid`
    kill $pid
}
Host *.domain
    ProxyCommand ssh -x -q -W %h:%p gateway.server

以上是关于apache_conf SSH的主要内容,如果未能解决你的问题,请参考以下文章

Ganymed SSH-2 for Java

Ganymed SSH-2 for Java学习笔记

Tips - Yum No match for argument: ssh

使用 Github for Windows 通过 SSH 使用自己的私有 Git

Permission 0644 for .ssh/id_rsa Are Too Open 解决办法

在 Jenkins for Git 中管理 SSH 密钥