2016-11-04 7 views
2

私のマシンはCentOS 5になっており、アップグレードできません。gitを2番目にコンパイルされたsshで使用する

# ssh -V 
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 
# which ssh 
/usr/bin/ssh 

のOpenSSH/OpenSSLの(はいプロキシがある)ssh://[email protected]:443に接続するにはあまりにも古いです

だから私は

# /tmp/ssh/bin/ssh -V 
OpenSSH_6.9p1, OpenSSL 1.0.2j 26 Sep 2016 

を/ tmp/SSHでSSHとSSLの最新バージョンをコンパイルそれは私が代わりには/ usr/BIのを/ tmp/sshを/ binに/ sshを使用するにgitを伝えることができるか、

# /tmp/ssh/bin/ssh -v [email protected] -p 443 
... 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /root/.ssh/id_rsa 
debug1: Server accepts key: pkalg ssh-rsa blen 277 
debug1: Authentication succeeded (publickey). 
Authenticated to altssh.bitbucket.org (via proxy). 
debug1: channel 0: new [client-session] 
debug1: Entering interactive session. 
PTY allocation request failed on channel 0 
logged in as *********. 

You can use git or hg to connect to Bitbucket. Shell access is disabled. 
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 
debug1: channel 0: free: client-session, nchannels 1 
Connection to altssh.bitbucket.org closed. 
Transferred: sent 3552, received 1744 bytes, in 0.4 seconds 
Bytes per second: sent 9724.6, received 4774.7 
debug1: Exit status 0 

今チャームのように動作しますn/ssh?

答えて

2

代替sshバイナリのベースディレクトリの先頭にPATHを追加するか、または代替のパスにGIT_SSH環境変数を設定することができます。例:

export GIT_SSH=/to/ssh/bin/ssh 
+0

これは私が探していたものです。ありがとう。 – Martial

関連する問題