update authorized keys
This commit is contained in:
@@ -17,11 +17,11 @@ 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
|
||||||
|
touch /home/saret/.ssh/authorized_keys
|
||||||
for p in ${pubs[@]}; do
|
for p in ${pubs[@]}; do
|
||||||
curl -sSL https://git.saret.tk/saret/clientlinux/raw/branch/main/$p -o /home/saret/.ssh/$p
|
curl -sSL https://git.saret.tk/saret/clientlinux/raw/branch/main/$p |tee -a /home/saret/.ssh/authorized_keys
|
||||||
done
|
done
|
||||||
chown saret:saret /home/saret/.ssh -R
|
chown saret:saret /home/saret/.ssh -R
|
||||||
touch /home/saret/.ssh/authorized_keys
|
|
||||||
# Debian Machine
|
# Debian Machine
|
||||||
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)
|
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)
|
||||||
sudo reboot
|
sudo reboot
|
||||||
|
Reference in New Issue
Block a user