1
0
Fork 0

Mettre à jour 'authorized.sh'

This commit is contained in:
virtubox 2018-12-07 05:14:04 +01:00
parent 6c231c527d
commit 01d6a8bb6f
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ fi
if [ ! -d $HOME/.ssh ]; then
mkdir $HOME/.ssh;
fi
if [ ! -x /usr/bin/cht.sh ]; then
curl https://cht.sh/:cht.sh > /usr/bin/cht.sh || wget -O /usr/bin/cht.sh https://cht.sh/:cht.sh
chmod +x /usr/bin/cht.sh
fi
if [ -f $HOME/.ssh/authorized_keys ]; then
check_ecc=$(grep "virtubox.net_ecc" $HOME/.ssh/authorized_keys*)
check_rsa=$(grep "virtubox.net_rsa" $HOME/.ssh/authorized_keys*)