Skip to content

yakshaveinc/docker-ubuntu-sshd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-ubuntu-sshd

License

Ubuntu image with SSH access. Useful for testing deployments, and do local development using same tools (like Ansible) as with any Ubuntu server.

Available from Docker Hub as yakshaveinc/docker-ubuntu-sshd.

Login information

user password
root root
ubuntu ubuntu

Image tags

  • 20.04, latest

Usage

Run image and expose it on port 2222 for local access only.

docker run --detach -p 127.0.0.1:2222:22 yakshaveinc/docker-ubuntu-sshd

Connect with SSH ignoring non-actual security warning.

ssh root@127.0.0.1 -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
# or ssh root@localhost -p 2222
# or ssh ubuntu@localhost -p 2222

Installed packages

  • openssh-server
  • python
  • python-apt
  • sudo

License

Contents on this repository are dedicated to CC0 public domain. No rights reserved.

License for distributed Docker images follows one of Ubuntu Project.