38
loading...
This website collects cookies to deliver better user experience
$ ssh-keygen -t ed25519 -C "[email protected]" -f another-identity
another-identity.pub
to your GitHub account, and test it with:
sh
$ ssh -i another-identity -T [email protected]
-i another-identity
makes ssh use the non-default key for connection. If all goes well, you will see your other profile name in the GitHub response:
sh
$ ssh -i another-identity -T [email protected]
Hi marcin-test! You've successfully authenticated, but GitHub does not provide shell access.
.ssh/config
and set there:
Host another-indenity.github.com
Hostname github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/another-identity
sh
$ ssh -T [email protected]
Hi marcin-test! You've successfully authenticated, but GitHub does not provide shell access.
`
github.com
with another-identity.github.com
:
git clone [email protected]:marcin-test/test.git
Cloning into 'test'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.