Tag

, , , , ,


Cryptographically secure pseudorandom number g...

Cryptographically secure pseudorandom number generator (Photo credit: Wikipedia)

Ketika mencoba menambahkan sebuah public key ke github, tadi kebetulan menemukan sebuah masalah saat mencoba koneksi dengan git melalui ssh. Permasalahannya yakni permasalahan otentikasi. Berikut tampilannya ketika mencoba melakukan koneksi ssh ke github.

[koro@kuma .ssh]$ ssh -T git@github.com
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Agent admitted failure to sign using the key.
Permission denied (publickey).

Kegagalan otentikasi ini dapat diselesaikan dengan menjalankan perintah ssh-add ~/.ssh/id_rsa misalnya:

[koro@kuma .ssh]$ ssh-add id_rsa
Enter passphrase for id_rsa: 
Identity added: id_rsa (id_rsa)
[koro@kuma .ssh]$ ssh -T git@github.com
Hi baka-hayi! You've successfully authenticated, but GitHub does not provide shell access.
[koro@kuma .ssh]$