# ed25519 算法 ssh-keygen -t ed25519 -a 100 -C "$(whoami)@mac-$(date +'%Y%m%d')" -f ~/.ssh/feitsui # rsa 算法 ssh-keygen -t rsa -b 2048 -C "$(whoami)@mac-$(date +'%Y%m%d')" -f ~/.ssh/feitsui # 修改权限 chmod 600 ~/.ssh/feitsui