Sign inSign up

peru/ubuntu_sshd

By peru

Updated almost 7 years ago

SSH server running on Ubuntu inside Docker

Image
0

616

peru/ubuntu_sshd repository overview

Docker pulls Docker Build

Ubuntu Docker image running SSHd daemon

SSH server running on Ubuntu inside Docker. Docker Hub page.

Description

Latest Ubuntu LTS running SSH daemon inside.

Usage:

docker run -d -e SSH_PUBLIC_KEYS="<key>" peru/ubuntu_sshd

or

docker run -d -e SSHD_PORT="22" -e SSH_PUBLIC_KEYS="<key1>\n<key2>\n<key3>..." peru/ubuntu_sshd

Example:

docker run -it --rm -p 2222:22 -e SSH_PUBLIC_KEYS="$(cat ~/.ssh/id_rsa.pub)\n$(cat ~/.ssh/ssh_keys/id_rsa.pub)\n$(cat ~/.ssh/ssh_keys/my.pub)" peru/ubuntu_sshd

or

PUBLIC_KEY=`cat ~/.ssh/id_rsa.pub`
docker run -it --rm -p 2222:22 -e SSH_PUBLIC_KEYS="$PUBLIC_KEY" peru/ubuntu_sshd

After that, run ssh [email protected] -p 2222 to access it.

License

MIT-LICENSE

Thanks to panubo/docker-sshd

Tag summary

Content type

Image

Digest

Size

59 MB

Last updated

almost 7 years ago

docker pull peru/ubuntu_sshd