2017-02-28 131 views
3

我在嘗試使用SQL pro進入遠程數據庫時遇到此錯誤。它時不時地工作,不知道發生了什麼事。SQLPro read_passphrase:無法打開/ dev/tty:未配置設備

我現在也遇到了GIT這個問題,它要求輸入我的密碼。

我更新了dev/tty的權限,嘗試刪除know_hosts,檢查〜/ ssh /的權限並添加了authorized_keys文件。什麼都沒有

錯誤:

Used command: /usr/bin/ssh -v -N -S none -o ControlMaster=no -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -o NumberOfPasswordPrompts=3 -i /Users/PackyTagliaferro/.ssh/id_rsa.pub -o TCPKeepAlive=no -o ServerAliveInterval=60 -o ServerAliveCountMax=1 -p 22 [email protected] -L 58527:127.0.0.1:3306 -L 58528:107.170.236.120:3306 

OpenSSH_7.3p1, LibreSSL 2.4.1 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 20: Applying options for * 
debug1: Control socket " none" does not exist 
debug1: Connecting to 107.170.236.120 [107.170.236.120] port 22. 
debug1: fd 3 clearing O_NONBLOCK 
debug1: Connection established. 
debug1: identity file /Users/PackyTagliaferro/.ssh/id_rsa.pub type 1 
debug1: key_load_public: No such file or directory 
debug1: identity file /Users/PackyTagliaferro/.ssh/id_rsa.pub-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_7.3 
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.1 
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.1 pat OpenSSH* compat 0x04000000 
debug1: Authenticating to 107.170.236.120:22 as 'forge' 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: algorithm: cu[email protected] 
debug1: kex: host key algorithm: ecdsa-sha2-nistp256 
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none 
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none 
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Th+2puoVypXAN0yQ1t09AHbmnssBxkoRP+4Hl9dIJcI 
debug1: Host '107.170.236.120' is known and matches the ECDSA host key. 
debug1: Found key in /Users/PackyTagliaferro/.ssh/known_hosts:2 
debug1: rekey after 134217728 blocks 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug1: rekey after 134217728 blocks 
debug1: SSH2_MSG_NEWKEYS received 
debug1: SSH2_MSG_EXT_INFO received 
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512> 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug1: Authentications that can continue: publickey 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /Users/PackyTagliaferro/.ssh/id_rsa.pub 
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279 
debug1: read_passphrase: can't open /dev/tty: Device not configured 
debug1: permanently_drop_suid: 501 
debug1: read_passphrase: can't open /dev/tty: Device not configured 
debug1: permanently_drop_suid: 501 
debug1: read_passphrase: can't open /dev/tty: Device not configured 
debug1: permanently_drop_suid: 501 
debug1: No more authentication methods to try. 
Permission denied (publickey). 
+0

你好 - 我也遇到過這個問題。你能解釋一下你在dev/tty,known_hosts等方面的權限嗎? https://stackoverflow.com/questions/47777180/sequelpro-read-passphrase-cant-open-dev-tty-device-not-configured – FooBar

回答

3

我遇到了這個問題太當使用SqlPro連接遠程SQL。

  • 首先,您應該確認您的公鑰已經添加到Linux服務器中,您已經完成了這項工作。其次,這是最重要的一步。請加載私鑰文件id_rsa不是id_rsa.pub

Screenshot

希望這有助於你。

+0

這工作。不知道有什麼區別,但只有非.pub文件有效。 – Packy