Skip to content

Latest commit

 

History

History

ssh-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

ssh-server

ssh-server

SSH container for port forwarding.

Usage

Default user sshuser.

docker run --name ssh-server                        \
    -v ~/.dockerdata/ssh-server:/home/sshuser/.ssh  \
    -p 2222:2222                                    \
    aceberg/ssh-server

Default port is 2222. It can be changed by passing -p 2223 to the container.

To login with ssh key:

cp authorized_keys ~/.dockerdata/ssh-server/
chown 1000:1000 authorized_keys
chmod 600 authorized_keys

Dockerfile

https://github.com/aceberg/my-dockerfiles/blob/main/ssh-server/Dockerfile