]>
code.delx.au - monosys/blob - setup-root-ssh
3 if [ "$(id -u)" -ne 0 ]; then
10 if [ -f /root
/.ssh
/id_rsa.pub
]; then
11 echo "SSH public key already exists. Exiting!"
15 if [ -f /root
/.ssh
/config
]; then
16 echo "SSH config already exists. Exiting!"
25 cat /root
/.ssh
/id_rsa.pub
27 echo ">>> creating .ssh/config"
28 cat > /root
/.ssh
/config
<<EOF
34 Hostname backup.example.com