mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 11:31:30 +01:00
install: update ssh config
This commit is contained in:
parent
a6179bae91
commit
94e5885120
|
@ -54,9 +54,9 @@ function create_ssh_config {
|
|||
echo "Enter ssh-key comment (leave empty for default: user@host)"
|
||||
read comment
|
||||
if [[ $comment ]]; then
|
||||
ssh-keygen -t rsa -b 4096 -C $comment
|
||||
ssh-keygen -t ed25519 -C "$comment"
|
||||
else
|
||||
ssh-keygen -t rsa -b 4096
|
||||
ssh-keygen -t ed25519
|
||||
fi
|
||||
# fix permissions
|
||||
chmod 0700 "$HOME/.ssh"
|
||||
|
|
Loading…
Reference in New Issue
Block a user