Compare commits
No commits in common. "b35a8af2808ef23d53e474b17421f07ec0817d25" and "47d1e2b48847fc4c6134df5d2e607a85492fac07" have entirely different histories.
b35a8af280
...
47d1e2b488
|
@ -1,2 +0,0 @@
|
||||||
# E.G. to boot 20 instances
|
|
||||||
openstack server create --user-data isen-postinstall.sh --min 20 --max 20 --flavor d2-4 --image 'Debian 11' --net Ext-Net --key-name arnaud-choupinette isen-
|
|
|
@ -26,9 +26,7 @@ function title.print {
|
||||||
exec &> >(log_handler)
|
exec &> >(log_handler)
|
||||||
|
|
||||||
title.print "Permit root login"
|
title.print "Permit root login"
|
||||||
sed -i '/PasswordAuthentication no/d' /etc/ssh/sshd_config
|
|
||||||
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
|
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
|
||||||
sed -i '/PermitRootLogin no/d' /etc/ssh/sshd_config
|
|
||||||
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
|
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
|
||||||
echo '' > /root/.ssh/authorized_keys
|
echo '' > /root/.ssh/authorized_keys
|
||||||
echo -e "moutarde42\nmoutarde42" | passwd root
|
echo -e "moutarde42\nmoutarde42" | passwd root
|
||||||
|
@ -52,7 +50,7 @@ wget https://www.arnaudmorin.fr/tmux.conf -O /root/.tmux.conf
|
||||||
wget https://www.arnaudmorin.fr/plikrc -O /root/.plikrc
|
wget https://www.arnaudmorin.fr/plikrc -O /root/.plikrc
|
||||||
wget https://www.arnaudmorin.fr/plik -O /usr/local/bin/plik
|
wget https://www.arnaudmorin.fr/plik -O /usr/local/bin/plik
|
||||||
chmod +x /usr/local/bin/plik
|
chmod +x /usr/local/bin/plik
|
||||||
#echo 'if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then tmux new-session -A -s ssh_tmux ;fi' >> /root/.bashrc
|
echo 'if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then tmux new-session -A -s ssh_tmux ;fi' >> /root/.bashrc
|
||||||
|
|
||||||
title.print "Install docker"
|
title.print "Install docker"
|
||||||
|
|
Loading…
Reference in New Issue