我試圖用MySQL工作臺連接到我的流浪MySQL服務器。它顯示圖像中顯示的一些錯誤。連接MySQL工作臺時出現SSH問題
工作臺錯誤日誌下面粘貼。
17:34:50 [INF][ SSH tunnel]: Existing SSH tunnel not found, opening new one
17:34:50 [INF][ SSH tunnel]: Opening SSH tunnel to 127.0.0.1:2222
17:34:50 [ERR][ sshtunnel.py]: Traceback (most recent call last):
File "/usr/share/mysql-workbench/sshtunnel.py", line 231, in _connect_ssh
look_for_keys=has_key, allow_agent=has_key)
File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 337, in connect
self._auth(username, password, pkey, key_filenames, allow_agent, look_for_keys)
File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 528, in _auth
raise saved_exception
AuthenticationException: Authentication failed.
17:34:50 [ERR][ SSH tunnel]: Authentication error opening SSH tunnel: Authentication error. Please check that your username and password are correct and try again.
vagrant up
命令輸出被粘貼下面
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 => 6216 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
命令vagrant ssh
在終端工作正常。我在這裏做錯了什麼?
你可以直接ssh到127.0.0.1:2222作爲具有預期密碼的流浪用戶(如果該框設置爲Vagrant推薦,應該是'vagrant')? – ydaetskcoR 2015-04-01 12:17:15
@ydaetskcoR Nope。它顯示'ssh:無法解析主機名127.0.0.1:2222:名稱或服務未知'。我已經添加了'vagrant up'命令輸出 – 2015-04-01 12:24:18
這聽起來像是不同的問題。您的問題中的錯誤是當它連接到該框但未能進行身份驗證時。您的評論中的錯誤是當沒有連接到框。你確定VM正在運行嗎? – ydaetskcoR 2015-04-01 12:29:21