ssh: generate a key
ActuallyAssume you will usessh this:from machine A to B.
On machine A
Go to .ssh:
cd ~/.ssh
Generate your key. Name it like id_TO_FROM_TYPE:
ssh-keygen -t ed25519 -f id_B_A_ed25519
ToRemember printthe thatpassphrase in ssh agent (just for comfort):
ssh-add id_B_A_ed25519
Copy the public partkey do:to clipboard:
cat id_B_A_ed25519.pub | pbcopy
On machine B
vim ~/.ssh/id_xxxxx.pub Cauthorized_keys
Append your clipboard and save.