blob: 732b101323da65c6ee6e3c28ae4a25c91107451a (
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 "$@"
|