Patrik Lundin
300c4283af
* Log in as few times as possible to not require a lot if yubikey keypresses * Make sure en_US.UTF-8 is present * Replace `rm -rf` with userdel command * Make sure the debian account is actually deleted * Remove locale related warnings when running script from macOS
12 lines
277 B
Bash
Executable file
12 lines
277 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# This script is called from prepare-iaas-debian after logging in via ssh as
|
|
# the default "debian" user
|
|
#
|
|
set -ex
|
|
|
|
sudo cp -r /home/debian/.ssh /root/
|
|
sudo chown -R root:root /root/.ssh
|
|
sudo chmod 700 /root/.ssh
|
|
sudo chmod 600 /root/.ssh/authorized_keys
|