Allow root ssh

This commit is contained in:
valentinab25 2019-12-06 20:19:45 +02:00 committed by GitHub
parent 67465d57c3
commit 4da6e34cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ mkdir -p /root/.ssh
> /root/.ssh/authorized_keys > /root/.ssh/authorized_keys
chmod go-rwx /root/.ssh/authorized_keys chmod go-rwx /root/.ssh/authorized_keys
sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config
sed -i 's/root:!/root:*/' /etc/shadow
# Provide SSH_AUTH_KEY_* via environment variable # Provide SSH_AUTH_KEY_* via environment variable
for item in `env`; do for item in `env`; do