Sign inSign up

zimboboyd/rev-ssh

By zimboboyd

Updated over 11 years ago

A ssh Server capable of accepting connections from remote Clients.

Image
0

1.0K

zimboboyd/rev-ssh repository overview

rev-ssh

Building

Copy the sources to your docker host and build the container:

# docker build --rm -t revssh .

Running

To run the container, binding to port 2200 on the host:

# docker run --name revssh -d -p 2200:22 -v ssh:/home/user/.ssh revssh

This will create a user named user with a randomly generated password. You can obtain the password via docker logs:

# docker logs ssh | grep 'ssh user password'
ssh user password: O2WXqqQ1CWwXHxrLZGip

You can set a specific password using the SSH_USERPASS environment variable:

# docker run --name ssh -d -p 2200:22 \
  -e SSH_USERPASS=secret revssh

Tag summary

Content type

Image

Digest

sha256:b67be0ba6

Size

-

Last updated

over 11 years ago

docker pull zimboboyd/rev-ssh