|
@ -421,7 +421,10 @@ EOF |
|
|
|
|
|
|
|
|
info "You can run this following command from an host having admin access to $dest:" |
|
|
info "You can run this following command from an host having admin access to $dest:" |
|
|
echo " (Or send it to a backup admin of $dest)" >&2 |
|
|
echo " (Or send it to a backup admin of $dest)" >&2 |
|
|
public_key=$(ssh-keygen -y -f <(e "$private_key"$'\n')) |
|
|
|
|
|
|
|
|
## We remove ending label (label will be added or not in the |
|
|
|
|
|
## private key, and thus here, depending on the version of |
|
|
|
|
|
## openssh-client) |
|
|
|
|
|
public_key=$(ssh-keygen -y -f <(e "$private_key"$'\n') | sed -r 's/ [^ ]+@[^ ]+$//') |
|
|
echo "ssh ${ssh_options[@]} myadmin@$dest ssh-key add '$public_key compose@$host'" |
|
|
echo "ssh ${ssh_options[@]} myadmin@$dest ssh-key add '$public_key compose@$host'" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|