blob: 824f0b973bd70c7c0787cb38b25b0d264e77ec71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
self=${0##*/}
keytype=${self#dyndns.}
keytype=${keytype%%.*}
case "$keytype" in
ssh-dss) keyfilename=dsa ;;
ecdsa-sha2-nistp256) keyfilename=ecdsa ;;
ssh-rsa|ssh-ed25519) keyfilename=${keytype#ssh-} ;;
*) exit 1 ;;
esac
sudo ssh -i /etc/ssh/ssh_host_${keyfilename}_key "$@" dyndns@cryptonomic.net
|