Skip to content

💻 A docker image of an SSH server based on alpine linux

Notifications You must be signed in to change notification settings

adamveld12/ssh-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSH Server

This is an ssh server that is hosted inside of a docker container based on Alpine Linux.

I'm slowly hardening this ssh server by following some tips from here.

The image on docker hub under adamveld12/ssh-server uses the Vagrant insecure keypair. Maybe this would be useful to you if you want to use an image for a local dev environment or some for testing.

How to use

  1. build.sh to generate a root ssh key and build an image tagged ssh-server.
  2. Spin up the container with docker run -d -p 2222:22 ssh-server.
  3. connect.sh or ssh root@${docker-machine ip default} -p 2222 -i ./keys/id_rsa to connect to your container.

You can replace the id_rsa.pub in ./keys to whatever public key you want. build.sh will prompt to overwrite ./keys if they already exist, so you don't have to worry about overwriting it accidentally.

LICENSE

MIT

About

💻 A docker image of an SSH server based on alpine linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages