my_username@my_username-laptop MINGW64 ~ (master)$ ssh-keygen -t dsaGenerating public/private dsa key pair.Enter file in which to save the key (/c/Users/my_username/.ssh/id_dsa):EnterEnter passphrase (empty for no passphrase):EnterEnter same passphrase again: EnterYour identification has been saved in /c/Users/my_username/.ssh/id_dsa.Your public key has been saved in /c/Users/my_username/.ssh/id_dsa.pub.The key fingerprint is: EnterSHA256:KMLyesG1eWkXq1iI4y7i+4bmVKgZBdCnReukvJgrtP0 my_username@my_username-laptopThe key's randomart image is: Enter+---[DSA 1024]----+|+. ..            || .. o.           ||  .+o            || +o+.  ..        ||oo=+o+..So       ||.O*o+.= o        ||*o*o = o         ||=*oo. .          ||OB=..E           |+----[SHA256]-----+my_username@my_username-laptop MINGW64 ~ (master)$ cd .sshmy_username@my_username-laptop MINGW64 ~/.ssh (master)$ cd ~/.sshmy_username@my_username-laptop MINGW64 ~/.ssh (master)$ lsgithub_rsa      id_dsa      known_hosts   rsa_key_pair.pubgithub_rsa.pub  id_dsa.pub  rsa_key_pairmy_username@my_username-laptop MINGW64 ~/.ssh (master)$ ls -latotal 45drwxr-xr-x 1 my_username 197121    0 Nov 17 23:43 ./drwxr-xr-x 1 my_username 197121    0 Nov 17 23:08 ../-rw-r--r-- 1 my_username 197121  668 Nov 17 23:43 id_dsa-rw-r--r-- 1 my_username 197121  614 Nov 17 23:43 id_dsa.pubmy_username@my_username-laptop MINGW64 ~/.ssh (master)$ cat id_dsa.pubssh-dss AAAAB3NzaC1kc3MAAACBAOrkqv9wt7WcngRfKSaMrCSXn8BfJZN7wEJWvpuqpTYWBzCAylqUSVA+GpMuXGhaDdwHJFftmoxi81PnASpIoZZrIRgqRHRnQph9DnQikB1Bkf4B+EpzD3EwKYWRUOFrHwnjPU1ByRgFOTADXn/O9SIj+9APKer9xFNHaBvv9AvDAAAAFQCYK15hX9llcyIPsHedNTpE0BhgaQAAAIAZ3xOjbu1Vs0yposrwfHdc1+WoUdt89Y8a2YEvmeToR7/M7SM6IPPgbxLTz6l32pbmFFUDknMpX0rL/VaP/ygLifKJDxtWlE2doQR+2FwsvQKnk1wyXlYGXPCaI6flxqJRVV8/VJapQBRAC/cC6g6MNPbTs9GyV/z/SYBE/f4EhgAAAIEAlVinwInGC2gfWL5y7iPmv4gHWuJx0bmGq8Dc5UGdB99uxGRkdOlPFQ8BP6dZ1T8+DlikwPE2CH7RNIb+08KEvtdRJCy++6x0wnvL6ApPM1szNL+gUdL8X2/Mt9r2bj3LvjIrz21u4lXgOa+OsCanu4yUfHhPcj5YgQrrrn3P0Gs= my_username@my_username-laptopmy_username@my_username-laptop MINGW64 ~/.ssh (master)my_username@my_username-laptop MINGW64 ~ (master)$ ssh -vT git@github.comOpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015debug1: Reading configuration data /etc/ssh/ssh_configdebug1: Connecting to github.com [192.30.252.129] port 22.debug1: Connection established.debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_rsa type -1debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_rsa-cert type -1debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_dsa type -1debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_dsa-cert type -1debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_ecdsa type -1debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_ecdsa-cert type -1debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_ed25519 type -1debug1: key_load_public: No such file or directorydebug1: identity file /c/Users/my_username/.ssh/id_ed25519-cert type -1debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_7.1debug1: Remote protocol version 2.0, remote software version libssh-0.7.0debug1: no match: libssh-0.7.0debug1: Authenticating to github.com:22 as 'git'debug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: server->client chacha20-poly1305@openssh.com <implicit> nonedebug1: kex: client->server chacha20-poly1305@openssh.com <implicit> nonedebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: Server host key: ssh-rsa SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8debug1: Host 'github.com' is known and matches the RSA host key.debug1: Found key in /c/Users/my_username/.ssh/known_hosts:1Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.debug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug1: SSH2_MSG_NEWKEYS receiveddebug1: Roaming not allowed by serverdebug1: SSH2_MSG_SERVICE_REQUEST sentdebug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug1: Authentications that can continue: publickeydebug1: Next authentication method: publickeydebug1: Trying private key: /c/Users/my_username/.ssh/id_rsadebug1: Trying private key: /c/Users/my_username/.ssh/id_dsadebug1: Trying private key: /c/Users/my_username/.ssh/id_ecdsadebug1: Trying private key: /c/Users/my_username/.ssh/id_ed25519debug1: No more authentication methods to try.Permission denied (publickey).my_username@my_username-laptop MINGW64 ~ (master)$ ssh-agent -sSSH_AUTH_SOCK=/tmp/ssh-8kgSDhweA5gl/agent.11684; export SSH_AUTH_SOCK;SSH_AGENT_PID=13892; export SSH_AGENT_PID;echo Agent pid 13892;my_username@my_username-laptop MINGW64 ~ (master)$ ssh-add -lCould not open a connection to your authentication agent.my_username@my_username-laptop MINGW64 ~ (master)$
Why can't I authenticate to GitHub?
ssh;ssh agent;github