Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexstandiford/0728ba7b21caa323a5ecf67c6e98abd2 to your computer and use it in GitHub Desktop.
Save alexstandiford/0728ba7b21caa323a5ecf67c6e98abd2 to your computer and use it in GitHub Desktop.
Setup openssh server on Local Flywheel Container
#!/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