Skip to content

Commit

Permalink
Update ssh.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
opcache authored Feb 13, 2023
1 parent eb4215d commit 904d557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openssh/ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q -b 2048 -C "[email protected]"

#ssh无密码认证 ed25519
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys


#ssh无密码认证 RSA
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Expand Down

0 comments on commit 904d557

Please sign in to comment.