Created
July 24, 2019 19:33
-
-
Save alexstandiford/0728ba7b21caa323a5ecf67c6e98abd2 to your computer and use it in GitHub Desktop.
Setup openssh server on Local Flywheel Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get update && apt-get install -y openssh-server | |
sed -i "/service mysql start/aservice ssh start" /etc/scripts/startup.sh | |
echo "root:root" | chpasswd | |
sed -i "s/PermitRootLogin without-password/PermitRootLogin yes/" /etc/ssh/sshd_config | |
echo "ssh update complete. You may now restart Local" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment