我們在Amazon Web Services上有一個EC2和RDS實例。我通常首先使用Putty連接到服務器,然後通過本地主機的隧道訪問數據庫。MySQL:無法通過SSH連接使用TCP/IP
我現在試圖通過SSH直接連接到使用TCP/IP的數據庫,但出現以下錯誤。我能夠直接連接其他應用程序(如FileZilla)而無需創建任何隧道,但無法連接MySQL。請指教。 known_hosts文件中沒有條目。
錯誤:database.aws-server.rds.amazonaws.com:3306
[Window Title]
MySQL Workbench
[Main Instruction]
Failed to Connect to MySQL at database.aws-server.rds.amazonaws.com:3306 through SSH tunnel at [email protected]:22 with user username
[Content]
Cannot open SSH Tunnel: Error connecting SSH tunnel: The host 100.100.100.100 fingerprints mismatch.
Expected key: hjd83iuwe98jdoiw8euoqeuo83eqe308
Server sent: 8ru84ru8ur984u8djc0938y4jddj398e
Please verify if it's correct.
To continue, delete entries for the host from the C:\Users\<USER>\AppData\Roaming\MySQL\Workbench\ssh\known_hosts file.
[OK]
*必須*是known_hosts文件中的條目否則,其中「預期的鍵」值來自哪裏? –
@ Michael-sqlbot不知何故,您的評論打開了我的眼睛,注意到known_hosts文件,我立即刪除了該文件以使我的連接正常工作。 Upvoted。 –