HUB
Sign inSign up

atingupta2005/ubuntu_ssh_ssh_enabled

By atingupta2005

•Updated almost 6 years ago

Image
1

450

atingupta2005/ubuntu_ssh_ssh_enabled repository overview

  • To create a container which has ssh service and python in it

sudo docker run --name ansible_client_1 -itd -p 8021:22 atingupta2005/ubuntu_ssh_ssh_enabled

ssh ansadmin@localhost -p 8021

  • In case SSH service in not enabled the start SSH Service in Container
sudo docker exec -it ansible_client_1 bash
service ssh start
  • Connect to the container using SSH:
ssh ansadmin@localhost -p <port_no>
  • This container has:
    • Python 3.5
    • User - ansibleadmin with password - ansadmin@123
Tag summary
Recent tags
Content type
Image
Digest
Size
108 MB
Last updated
almost 6 years ago
docker pull atingupta2005/ubuntu_ssh_ssh_enabled:latest