added sshpass and stuff
This commit is contained in:
@@ -5,7 +5,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
if [ "$(ls /home |grep saret)" != "saret" ]; then
|
if [ "$(ls /home |grep saret)" != "saret" ]; then
|
||||||
sudo apt -y update
|
sudo apt -y update
|
||||||
sudo apt -y install wget nano curl zsh git lsb-release htop apt-transport-https xorg slim ncdu
|
sudo apt -y install wget nano curl zsh git lsb-release htop apt-transport-https xorg slim ncdu sshpass
|
||||||
passwd root -d
|
passwd root -d
|
||||||
username=saret
|
username=saret
|
||||||
password=qwerty
|
password=qwerty
|
||||||
@@ -16,8 +16,8 @@ if [ "$(ls /home |grep saret)" != "saret" ]; then
|
|||||||
curl -sSL "https://www.googleapis.com/drive/v3/files/1etRrxKbD57DCyZiqhA7uOMWHzHAsclyQ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >WindowsMachine.pub
|
curl -sSL "https://www.googleapis.com/drive/v3/files/1etRrxKbD57DCyZiqhA7uOMWHzHAsclyQ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >WindowsMachine.pub
|
||||||
curl -sSL "https://www.googleapis.com/drive/v3/files/1qPxPILbk9X2wK4nbXnyGCOZs-jjq6NXZ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >DebianMachine
|
curl -sSL "https://www.googleapis.com/drive/v3/files/1qPxPILbk9X2wK4nbXnyGCOZs-jjq6NXZ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >DebianMachine
|
||||||
curl -sSL "https://www.googleapis.com/drive/v3/files/10y_s7IHOyqqUfdWB-HwRfYOy2EGlEAro?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >WindowsMachine
|
curl -sSL "https://www.googleapis.com/drive/v3/files/10y_s7IHOyqqUfdWB-HwRfYOy2EGlEAro?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >WindowsMachine
|
||||||
ssh-copy-id -i ./DebianMachine.pub -o StrictHostKeyChecking=no saret@$HOST
|
sshpass -p "qwerty" ssh-copy-id -i ./DebianMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME
|
||||||
ssh-copy-id -i ./WindowsMachine.pub -o StrictHostKeyChecking=no saret@$HOST
|
sshpass -p "qwerty" ssh-copy-id -i ./WindowsMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME
|
||||||
sudo reboot
|
sudo reboot
|
||||||
su $username
|
su $username
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user