Skip to content

Instantly share code, notes, and snippets.

@gbrault
Created April 15, 2017 13:37
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 gbrault/a42b012d774d2d26c70808859a017140 to your computer and use it in GitHub Desktop.
Save gbrault/a42b012d774d2d26c70808859a017140 to your computer and use it in GitHub Desktop.
how to ssh a docker container
- create an ubuntu docker container with kitematic
- load ssh-server with apt-get
- edit /etc/ssh/ssh_config and undash PasswordAuthentication yes
- restart ssh (su + service ssh restart)
- add a new user in the admin
example: adduser gbrault
then usermod -aG sudo gbrault
- add an host port 2222 to container 22 in kitematic
open localhost:2222 with winscp or putty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment