Skip to content

Instantly share code, notes, and snippets.

@morris821028
Created February 8, 2018 07:32
Show Gist options
  • Save morris821028/9d8f866a147d30e0fc17621f995ec52c to your computer and use it in GitHub Desktop.
Save morris821028/9d8f866a147d30e0fc17621f995ec52c to your computer and use it in GitHub Desktop.
View GUI Application: Docker for Windows
apt-get update
apt-get install openssh-server
mkdir /var/run/sshd
chmod 0755 /var/run/sshd
/usr/sbin/sshd
useradd --create-home --shell /bin/bash --groups sudo username ## includes 'sudo'
passwd username ## Enter a password
apt-get install x11-apps ## X11 demo applications (optional)
ifconfig | awk '/inet addr/{print substr($2,6)}' ## Display IP address (optional)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment