Ubuntu

無法使用專用 LAN IP 從一個 Digital Ocean Droplet SSH 到另一個

  • June 7, 2016

我有 2 個具有私有 LAN IP 的 Digital Ocean 實例。第一個是 10.130.30.82,第二個是 10.130.35.154。我可以從第一個ping第二個但不是SSH。我已使用 ssh-copy-id 將我的密鑰複製到兩台伺服器,並且沒有更改第二台伺服器上的 sshd_config。我的本地機器和兩台伺服器都是 ubuntu,

從第一個 SSH 到第二個會出現此錯誤:

/etc/ssh/ssh_config: line 11: Bad configuration option: hostkey
/etc/ssh/ssh_config: line 12: Bad configuration option: hostkey
/etc/ssh/ssh_config: line 13: Bad configuration option: hostkey
/etc/ssh/ssh_config: line 15: Bad configuration option: useprivilegeseparation
/etc/ssh/ssh_config: line 18: Bad configuration option: keyregenerationinterval
/etc/ssh/ssh_config: line 19: Bad configuration option: serverkeybits
/etc/ssh/ssh_config: line 22: Bad configuration option: syslogfacility
/etc/ssh/ssh_config: line 26: Bad configuration option: logingracetime
/etc/ssh/ssh_config: line 27: Bad configuration option: permitrootlogin
/etc/ssh/ssh_config: line 28: Bad configuration option: strictmodes
/etc/ssh/ssh_config: line 35: Bad configuration option: ignorerhosts
/etc/ssh/ssh_config: line 44: Bad configuration option: permitemptypasswords
/etc/ssh/ssh_config: line 63: Bad configuration option: x11forwarding
/etc/ssh/ssh_config: line 64: Bad configuration option: x11displayoffset
/etc/ssh/ssh_config: line 65: Bad configuration option: printmotd
/etc/ssh/ssh_config: line 66: Bad configuration option: printlastlog
/etc/ssh/ssh_config: line 74: Bad configuration option: acceptenv
/etc/ssh/ssh_config: line 76: Bad configuration option: subsystem
/etc/ssh/ssh_config: line 87: Bad configuration option: usepam
/etc/ssh/ssh_config: terminating, 19 bad configuration options

您已經更改ssh_config了僅應在sshd_config(注意d)中使用的選項。

它一直抱怨的文件是 SSH 客戶端的配置,似乎來自源伺服器而不是目標伺服器。

引用自:https://serverfault.com/questions/782507