HUB
Sign inSign up

boxscale/sysdssh

By boxscale

•Updated over 7 years ago

Centos7+systemd+ssh

Image
0

324

boxscale/sysdssh repository overview

Compiled Openssl Version: OpenSSL 1.1.1 11 Sep 2018

Compiled OpenSSH Version: 7.9

Compiled Perl 5.28.0

Run your normal systemctl commands with this container.

ssh username is user and password is changeme which you can change once you login with following command:

passwd user (VERY IMPORTANT CHANGE THE DEFAULT PASSWORD)

then you can run sudo su to become root user

ssh user@ or ssh [email protected] (if you export port 22 to physical host)

To run container: (this way port 22 is not exported to host but you can connect via ip of container)

docker run --privileged --name centos7-ssh -d boxscale/sysdssh

To see IP Address of running container run docker ps then grab container id and run

docker inspect 7801a5c38f69 | grep IP (for example)

If you want port 22 exported to physical host then run:

docker run --privileged --name centos7-ssh -d -p 22:22 boxscale/sysdssh

If port 22 is already running on physical host you can just change the port to connect to:

docker run --privileged --name centos7-ssh -d -p 992:22 boxscale/sysdssh (for example)

then you would connect ssh -p 992 user@localhost (for example)

If you want the container to start every time the host starts then add flag to command

--restart=always

Tag summary
Recent tags
Content type
Image
Digest
Size
188 MB
Last updated
over 7 years ago
docker pull boxscale/sysdssh:latest