我試圖ssh進入一個emr實例。 IP和密鑰信息是正確的。關於什麼問題的想法可能是?ssh進入emr實例失敗,ssh_exchange_identification錯誤
會話跟蹤:
> ssh -vv -i pemfile.pem [email protected]
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file pemfile.pem type -1
debug1: key_load_public: No such file or directory
debug1: identity file pemfile.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: Connection closed by remote host
> ls -al pemfile.pem
-rw-r--r-- 1 user staff 1692 Aug 24 15:09 pemfile.pem
什麼是用戶使用的是? – error2007s
檢查 - 用戶信息是正確的(「hadoop @」) – blueberryfields
我擔心「key_load_public:沒有這樣的文件或目錄」在ssh日誌中的錯誤 - 我的pem文件可能會損壞嗎? – blueberryfields