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:
parent
57f1ec2612
commit
97fb4455d6
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user