2017/08/09 MacOS
$ ls -al ~/.ssh
ls
- -a : show all file
- -l : show file details
$ cd ~/.ssh
$ ssh-keygen -t ed25519 -C "[email protected]"
ssh-keygen
- -t : key type
- -f : file name to store the key
- -b : key bit number case ED25519: Fixed
- -N : new pass pharase
- -C : add new comment
$ eval "$(ssh-agent -s)"
$ ssh-add -K ~/.ssh/id_ed25519
ssh-add
- -K : key is registered in the key chain store and it is automatically called when the terminal is activated
- -l : show list of registered keys
$ pbcopy < ~/.ssh/id_ed25519.pub
ssh -T [email protected]