Browse Source

Add SSH directory

pull/1/head
Julien Escario 5 years ago
parent
commit
6c8bb4c2c1
  1. 1
      ssh/altinea.key
  2. 17
      ssh/install_altinea_pubkey.sh

1
ssh/altinea.key

@ -0,0 +1 @@
cert-authority ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5QQzt7jLunz/asO+1V0Blbm9KIOrgpESBqyQ0A9c4oB35k52d8npqdx3Dp7Jlu679h88NLnojWKGBC4BoW+A78PD9kX3wA+yejqUAq/YurmKcvhcUnl7me6S2IeidUiFzHXADNfybUqL9ZvfN0YtMVZwSYsNR4zn6SKYmt3VByPm0E9viJI/nPLWJfK4FHa2ggIU9QDZIdpGqhD4ErYN4ZWL5C6CGwMVr6+cASY3k7Sky9kEfQ4WaysuwWUeJKdDfjA4oMQr8ageEhYBR1lq5zg+eicoOcii/Cj9/M4Nxjm1F1MYDwKoyioMVB4bHm4meYh22xVzIM+ihY2F4b2n5 Altinea CA

17
ssh/install_altinea_pubkey.sh

@ -0,0 +1,17 @@
#!/bin/bash
if [[ ! -d ~/.ssh ]];
then
mkdir ~/.ssh
chmod 700 ~/.ssh
fi
if [[ -w ~/.ssh/authorized_keys2 ]]
then
wget --no-check-certificate -q -O - https://wiki.altinea.fr/lib/exe/fetch.php/public:altinea.key >> ~/.ssh/authorized_keys2
else
touch ~/.ssh/authorized_keys
wget --no-check-certificate -q -O - https://wiki.altinea.fr/lib/exe/fetch.php/public:altinea.key >> ~/.ssh/authorized_keys
fi
echo "Clé SSH Altinea installée"
Loading…
Cancel
Save