Skip to content

Commit 4499a32

Browse files
author
Administrator
committed
key-gen
1 parent 733fe63 commit 4499a32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gen_ssh-key.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
email=$1
3+
ssh-keygen -t ed25519 -C "$email" -N ""
4+
eval "$(ssh-agent -s)"
5+
ssh-add ~/.ssh/id_ed25519
6+
cat ~/.ssh/id_ed25519.pub

0 commit comments

Comments
 (0)