SSH
Generate ssh key / identity
ssh-keygen -t ed25519 -C "[email protected]" -f id_ed25519_serge`
SSH-Agent (optional)
List all identities
Delete all identities
Add a identity
Setup ssh config
Choose ssh identity file for a host
Host github.com HostName github.com User git IdentityFile ~/.ssh/id_ed25519_serge IdentitiesOnly yes
Verify identity
ssh -vT [email protected] ...Hi jdedev! You've successfully authenticated, but GitHub does not provide shell access....
delete known_hosts entry line
delete line # 6
SSH Key Management
Generate SSH Key
ssh-keygen -t ed25519 -C "[email protected]" -f id_ed25519_serge
SSH Agent
-
List all identities
-
Delete all identities
-
Add an identity
SSH Config
Edit ~/.ssh/config
to specify identity for a host:
Verify SSH Identity
ssh -vT [email protected]
# ...
# Hi jdedev! You've successfully authenticated, but GitHub does not provide shell access.
# ...
Remove a known_hosts Entry
Delete line #6 from known_hosts: