1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-04-25 15:35:21 -04:00

switch id_rsa to id_ed25519

This commit is contained in:
Jake Jarvis 2021-01-12 13:00:32 -05:00 committed by GitHub
parent 57f1ec2612
commit 97fb4455d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,10 +66,10 @@ s3ls() {
# https://github.com/rtomayko/dotfiles/blob/rtomayko/.bashrc
push_ssh_cert() {
local _host
test -f ~/.ssh/id_rsa.pub || ssh-keygen -t rsa
test -f ~/.ssh/id_ed25519.pub || ssh-keygen -t ed25519
for _host in "$@";
do
echo $_host
ssh $_host 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub
ssh $_host 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_ed25519.pub
done
}