-C "label": The -C option is used to add a comment to the key,label for the SSH key, ii will appedn end of pub key content
ssh-keygen -t ed25519 -C "label"
it is used to start the SSH agent and set up the environment variables necessary for the SSH agent to function within your current shell session
eval "$(ssh-agent -s)"
add private keys to the SSH agent, allowing the SSH agent to use those keys for authentication when connecting to SSH servers
ssh-add private_key_file_name
ssh-add -l
User git Host github.com-personal HostName github.com IdentityFile ~/.ssh/private_key_file(available wihtout any extension)
User git Host github.com-work HostName github.com IdentityFile ~/.ssh/private_key_file(available wihtout any extension)
User git Host gitlab.com-personal Hostname gitlab.com IdentityFile ~/.ssh/private_key_file(available wihtout any extension)
ssh -T Host
ssh -T github.com-personal
git clone git@github.com:xxx/xxx.git
This part specifies the Git username (git) and the host (github.com). In this context, it signifies the user (git) that is accessing the github server.
xxx/xxx.git: This part specifies the path to the repository. The first set before the slash (/) represents the namespace or user/group where the repository resides. xxx.git is the name of the repository itself.
git clone git@github.com-personal:xxx/xxx.git