簡體   English   中英

“無”拒絕訪問。 嘗試使用 RStudio 通過 SSH 訪問 MySQL Workbench 數據庫

[英]Access denied for 'none'. Trying to access a MySQL Workbench database via SSH using RStudio

SSH 密鑰是一個密鑰文件; 服務器沒有基於字符串的密碼。 SSH 主機和 MySQL 數據庫都在同一台服務器上。 我需要通過 SSH 連接到服務器(下面的代碼)然后訪問數據庫。 我嘗試了許多不同的代碼片段,下面是我得到的最遠的片段。

我的“最佳”代碼:

library(ssh)
session <- ssh_connect("user@host", keyfile = "<local path>", verbose = 2)
print(session)

這給出了錯誤:

ssh_pki_import_privkey_base64: Trying to decode privkey passphrase=false
ssh_connect: libssh 0.8.6 (c) 2003-2018 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_pthread
ssh_socket_connect: Nonblocking connection socket: 13
ssh_connect: Socket connecting, now waiting for the callbacks to work
socket_callback_connected: Socket connection callback: 1 (0)
ssh_client_connection_callback: SSH server banner: SSH-2.0-OpenSSH_7.4
ssh_analyze_banner: Analyzing banner: SSH-2.0-OpenSSH_7.4
ssh_analyze_banner: We are talking to an OpenSSH client version: 7.4 (70400)
ssh_known_hosts_read_entries: Failed to open the known_hosts file '/etc/ssh/ssh_known_hosts': No such file or directory
ssh_kex_select_methods: Negotiated curve25519-sha256,ssh-ed25519,aes256-ctr,aes256-ctr,hmac-sha2-256,hmac-sha2-256,none,none,,
ssh_packet_dh_reply: Received SSH_KEXDH_REPLY
ssh_client_curve25519_reply: SSH_MSG_NEWKEYS sent
ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
ssh_packet_newkeys: Signature verified and valid
Found known server key: <...placeholder key data stuff...>
ssh_packet_userauth_failure: Access denied for 'none'. Authentication that can continue: publickey
ssh_packet_userauth_failure: Access denied for 'none'. Authentication that can continue: publickey
ssh_packet_userauth_failure: Access denied for 'publickey'. Authentication that can continue: publickey
ssh_packet_userauth_failure: Access denied for 'publickey'. Authentication that can continue: publickey
Error: Authentication with ssh server failed

我遇到了同樣的錯誤,因為我試圖連接我的 ed25519 密鑰(使用密碼)。 將連接屬性切換到我的 RSA 密鑰(使用密碼)后,連接正常。

這里有一個報告的問題:無法使用 ed25519 密鑰通過“Standard TCP/IP over SSH”連接

該頁面上的評論說它適用於沒有密碼的ed25519 密鑰但我還沒有測試過。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM