Created
April 15, 2017 13:37
-
-
Save gbrault/a42b012d774d2d26c70808859a017140 to your computer and use it in GitHub Desktop.
how to ssh a docker container
This file contains hidden or 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
- 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