$ cd ~/.ssh
$ ls
$ cat ~/.ssh/id_rsa.pub
Note for Windows 10
$ ssh-keygen -t rsa -b 4096 -C "your comment"
$ ssh-keygen -t rsa -b 4096 -C "msi-laptop"
ssh-keygen -t ed25519 -C "your comment"
Note for Windows 10
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
/** Leave it empty, just hit enter **/
$ eval "$(ssh-agent -s)"
$ ssh-add <path to private SSH key>
ex. $ ssh-add ~/.ssh/id_rsa
/** Add to agent **/
$ cat ~/.ssh/id_rsa.pub
Add SSH Keys on GitHub/ GitLab/ Bitbucket
then…check the keys
ssh -T git@github.com
ssh -T git@gitlab.com
$ ssh -T git@bitbucket.org
Might have to install this, in order to clone from remote sites properly
sudo apt install ssh-askpass
$ cd ~/.ssh
$ ls
$ cat ~/.ssh/id_rsa.pub
$ cd ~/.ssh
$ ssh-copy-id [B's user]@[B's host]
ssh-copy-id pmduser@10.20.30.215