Skip to content

Instantly share code, notes, and snippets.

@bsdis
Last active October 21, 2019 12:53
Show Gist options
  • Save bsdis/c611a878b1d109c225164ec3ce30563a to your computer and use it in GitHub Desktop.
Save bsdis/c611a878b1d109c225164ec3ce30563a to your computer and use it in GitHub Desktop.
$ ssh -i /Users/Jorgen/.ssh/id_rsa_gh2.pub -vT git@github.com
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/Jorgen/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [140.82.113.4] port 22.
debug1: Connection established.
debug1: identity file /Users/Jorgen/.ssh/id_rsa_gh2.pub type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Jorgen/.ssh/id_rsa_gh2.pub-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version babeld-f345ed5d
debug1: no match: babeld-f345ed5d
debug1: Authenticating to github.com:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
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: ssh-rsa SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
debug1: Host 'github.com' is known and matches the RSA host key.
debug1: Found key in /Users/Jorgen/.ssh/known_hosts:13
Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/Jorgen/.ssh/id_rsa_gh2.pub
debug1: Server accepts key: pkalg ssh-rsa blen 279
Enter passphrase for key '/Users/Jorgen/.ssh/id_rsa_gh2.pub':
debug1: No more authentication methods to try.
Permission denied (publickey).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment