質問: ubuntuまたはdebianからgooglecloudengineにsshで接続できません ローカルのlinuxを使用してgooglecloudinsanceにssh接続しようとしています。ドキュメントを使用してキーを生成しましたssh-keygen -t rsa -f〜/.ssh/my-ssh-key -c [ユーザー名]次に、メタデータにpubキーを配置します。しかし、それは機能しません。私は常に許可拒否(公開鍵)によって拒否された接続を取得します。また、webシェルとの接続は機能しません。別のマシンの古いsshキーを使用すると、機能します。誰かが問題が何であるかについての考えを持っていますか?よろしく、アレックス
回答: ご回答有難うございます。 idはこんな感じだったと思います。ここにログがあります、多分何かが間違っているかもしれませんが、私はそれを特定することができません。openssh_7.2p2 ubuntu-4ubuntu2.2, openssl 1.0.2g 1 mar 2016 debug1: reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: applying options for * debug1: connecting to ccc.ccc.cc [aaa.aaa.aaa.aa] port 22. debug1: connection established. debug1: identity file /home/foo/.ssh/id_rsa type 1 debug1: key_load_public: no such file or directory debug1: identity file /home/foo/.ssh/id_rsa-cert type -1 debug1: key_load_public: no such file or directory debug1: identity file /home/foo/.ssh/id_dsa type -1 debug1: key_load_public: no such file or directory debug1: identity file /home/foo/.ssh/id_dsa-cert type -1 debug1: key_load_public: no such file or directory debug1: identity file /home/foo/.ssh/id_ecdsa type -1 debug1: key_load_public: no such file or directory debug1: identity file /home/foo/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: no such file or directory debug1: identity file /home/foo/.ssh/id_ed25519 type -1 debug1: key_load_public: no such file or directory debug1: identity file /home/foo/.ssh/id_ed25519-cert type -1 debug1: enabling compatibility mode for protocol 2.0 debug1: local version string ssh-2.0-openssh_7.2p2 ubuntu-4ubuntu2.2 debug1: remote protocol version 2.0, remote software version openssh_6.7p1 debian-5+deb8u3 debug1: match: openssh_6.7p1 debian-5+deb8u3 pat openssh* compat 0x04000000 debug1: authenticating to sdev.meilon.de:22 as 'foo' debug1: ssh2_msg_kexinit sent debug1: ssh2_msg_kexinit received debug1: kex: algorithm: curve25519-sha256@libssh.org debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com mac: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com mac: <implicit> compression: none debug1: expecting ssh2_msg_kex_ecdh_reply debug1: server host key: ecdsa-sha2-nistp256 sha256:d8f511w+xdwbs2z8e212lt369d3og2j4cyrsme1etwm debug1: host 'sdev.meilon.de' is known and matches the ecdsa host key. debug1: found key in /home/foo/.ssh/known_hosts:1 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_service_accept received debug1: authentications that can continue: publickey debug1: next authentication method: publickey debug1: offering rsa public key: /home/foo/.ssh/id_rsa debug1: authentications that can continue: publickey debug1: offering rsa public key: foo@foo-x1 debug1: authentications that can continue: publickey debug1: trying private key: /home/foo/.ssh/id_dsa debug1: trying private key: /home/foo/.ssh/id_ecdsa debug1: trying private key: /home/foo/.ssh/id_ed25519 debug1: no more authentication methods to try. permission denied (publickey).