public keys
This commit is contained in:
@@ -17,14 +17,13 @@ if [ "$(ls /home |grep saret)" != "saret" ]; then
|
|||||||
chown $username:$username /SSH -R
|
chown $username:$username /SSH -R
|
||||||
chmod au+xwr /SSH -R
|
chmod au+xwr /SSH -R
|
||||||
mkdir -p /home/saret/.ssh 2>/dev/null
|
mkdir -p /home/saret/.ssh 2>/dev/null
|
||||||
|
for p in ${pubs[@]}; do
|
||||||
|
curl -sSL https://git.saret.tk/saret/clientlinux/raw/branch/main/$p -o /home/saret/.ssh/$p
|
||||||
|
done
|
||||||
chown saret:saret /home/saret/.ssh -R
|
chown saret:saret /home/saret/.ssh -R
|
||||||
touch /home/saret/.ssh/authorized_keys
|
touch /home/saret/.ssh/authorized_keys
|
||||||
# Debian Machine
|
# Debian Machine
|
||||||
curl -sSL "https://gist.githubusercontent.com/1kamma/5c283f4fdeff2d5a6e6e97b310f3bc8b/raw/5216f05644e6924ff8c33b0123643dc1ed90ce2f/DebianMachine.pub" >>/home/saret/.ssh/authorized_keys
|
pubs=(AzureSSH.pub CloudConsole.pub DebianGithub.pub DebianMachine.pub KorenSSH.pub LibreGithub.pub OracleServerGitHub.pub VisualStudio.pub Windows2Github.pub WindowsGithub.pub WindowsMachine.pub phoney.pub)
|
||||||
# Windows Machine
|
|
||||||
curl -sSL "https://gist.githubusercontent.com/1kamma/5c283f4fdeff2d5a6e6e97b310f3bc8b/raw/72eefec64df079cd4fe07e0b723ccdc02d4c1141/WindowsMachine.pub" >>/home/saret/.ssh/authorized_keys
|
|
||||||
# Phoney
|
|
||||||
curl -sSL "https://gist.githubusercontent.com/1kamma/5c283f4fdeff2d5a6e6e97b310f3bc8b/raw/8ac7c2cc43a0421646eb10351d08aa8d19c274e2/phoney.pub" >>/home/saret/.ssh/authorized_keys
|
|
||||||
sudo reboot
|
sudo reboot
|
||||||
su $username
|
su $username
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user