14 lines
268 B
Bash
14 lines
268 B
Bash
wxi-ssh-keys-generate(){
|
|
wxi-header "SSH / Keys / Generate"
|
|
wxi-restricted
|
|
|
|
if [[ ! -z $1 ]]
|
|
then
|
|
if [[ ! -f "$HOME/.ssh/keys/$1" ]]
|
|
then
|
|
ssh-keygen -t ed25519 -f $HOME/.ssh/keys/$1 -q -N "" -C "$USERNAME" &> /dev/null
|
|
fi
|
|
fi
|
|
wxi-footer
|
|
}
|