2017-08-07 39 views
2

所以ssh通過控制檯/終端正常工作,但是當我使用MySQL數據庫客戶端(Sequel Pro)時,它似乎在某種程度上使用了不同的ssh版本,因此include指令不會工作。它聲明它使用的是正確的SSH版本,但它在協議期間的某個時刻切換了嗎?ssh include指令不起作用

OpenSSH_7.5p1, OpenSSL 1.0.2l 25 May 2017 
debug1: Reading configuration data /Users/me/.ssh/config 
debug1: Reading configuration data /Users/me/.ssh/devops 
debug1: Reading configuration data /Users/me/.ssh/defaults 
debug1: /Users/me/.ssh/defaults line 4: Applying options for * 
debug1: /Users/me/.ssh/defaults line 76: Applying options for ch-pre-bastion 
debug1: /Users/me/.ssh/defaults line 80: Applying options for ch-pre-* 
debug1: Reading configuration data /usr/local/etc/ssh/ssh_config 
debug1: Control socket " none" does not exist 
debug1: Executing proxy command: exec ssh [email protected] -W 52.33.83.63:22 
debug1: permanently_drop_suid: 502 
debug1: identity file /Users/me/.ssh/id_rsa type 1 
debug1: key_load_public: No such file or directory 
debug1: identity file /Users/me/.ssh/id_rsa-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_7.5 
/Users/me/.ssh/config: line 1: Bad configuration option: include 
/Users/me/.ssh/config: line 2: Bad configuration option: include 
/Users/me/.ssh/config: terminating, 2 bad configuration options 
ssh_exchange_identification: Connection closed by remote host 

回答

0

您必須安裝在您的計算機上可能更SSH版本,並從代理命令的一個可能是撿舊人,沒有Include支持。

DEBUG1:執行代理命令:exec SSH [email protected] -W 52.33.83.63:22

試圖找到一個完整路徑ssh二進制和在ProxyCommand~/.ssh/config或者用它只需使用ProxyJump選項,該選項應選擇正確的ssh實例。

+0

我不得不在我的mac上禁用SIP,並將系統版本(usr/bin/ssh)(6.x)鏈接到我的自制軟件7.5版本(usr/local/bin/ssh)。 – ambe5960