Skip to content

Instantly share code, notes, and snippets.

@ayufan
Last active November 14, 2018 18:38
Show Gist options
  • Save ayufan/482a26392f8434fdaa517ae0dadfb0e2 to your computer and use it in GitHub Desktop.
Save ayufan/482a26392f8434fdaa517ae0dadfb0e2 to your computer and use it in GitHub Desktop.
Run simplest docker bionic server
docker run --rm ubuntu:bionic 'apt-get update -y && apt-get install -y openssh-server && useradd -g -s /bin/bash -m ayufan && mkdir -p /run/sshd && echo ayufan:ayufan | chpasswd && exec /usr/sbin/sshd -D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment