Mac /
SSHKeys
see:
- https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/
- https://unix.stackexchange.com/questions/31071/shell-script-for-logging-into-a-ssh-server
- https://rderik.com/blog/understanding-ssh-keys-and-using-keychain-to-manage-passphrase-on-macos/
my summary:
# generate a key, with or without passphrase ssh-keygen -t rsa -b 2048 -C " key for rcvn@mac" -f ~/.ssh/id_nas # put on remove ssh-copy-id rcvn@nas.local # then tell the shell to auto add the key, in .profile or equivalent ssh-add .ssh/id_nas # and use ssh without typing a password ssh rcvn@nas.local # using without ssh-add ssh -i ~/.ssh/id_nas nas.local