Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

vicamo/docker-sshd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sshd

Dockerized SSH service, built on top of official Ubuntu and Debian images.

Image tags

  • vicamo/sshd:precise
  • vicamo/sshd:trusty
  • vicamo/sshd:xenial
  • vicamo/sshd:bionic
  • vicamo/sshd:cosmic
  • vicamo/sshd:disco
  • vicamo/sshd:wheezy
  • vicamo/sshd:jessie
  • vicamo/sshd:stretch
  • vicamo/sshd:buster
  • vicamo/sshd:sid

Installed packages

Base:

Image specific:

Config:

  • exposed port 22
  • default command: /usr/sbin/sshd -D -e

Run example

$ sudo docker run --detach --publish-all --name sshd vicamo/sshd:trusty
$ sudo docker logs sshd
Server listening on 0.0.0.0 port 22.
Server listening on :: port 22.
$ sudo docker port sshd 22
  0.0.0.0:49154

$ sudo docker exec --interactive --tty sshd adduser vicamo
Adding user `vicamo' ...
Adding new group `vicamo' (1000) ...
Adding new user `vicamo' (1000) with group `vicamo' ...
Creating home directory `/home/vicamo' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for vicamo
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y

$ ssh vicamo@localhost -p 49154
vicamo@localhost's password:
vicamo@682308528aa1:~$

Issues

If you run into any problems with this image, please check (and potentially file new) issues on the vicamo/docker_sshd repo, which is the source for this image.