mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2025-04-26 03:45: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
|
# https://github.com/rtomayko/dotfiles/blob/rtomayko/.bashrc
|
||||||
push_ssh_cert() {
|
push_ssh_cert() {
|
||||||
local _host
|
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 "$@";
|
for _host in "$@";
|
||||||
do
|
do
|
||||||
echo $_host
|
echo $_host
|
||||||
ssh $_host 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub
|
ssh $_host 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_ed25519.pub
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user