{"id":25693797,"url":"https://github.com/kostas-python/sshconnections-with-docker","last_synced_at":"2026-05-18T07:02:06.680Z","repository":{"id":254869580,"uuid":"847770061","full_name":"kostas-python/sshconnections-with-Docker","owner":"kostas-python","description":"This project includes a script (connect.sh) for connecting to Docker containers using SSH. It automates the process of connecting to two specific containers within a Docker network.","archived":false,"fork":false,"pushed_at":"2024-08-26T15:21:42.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-26T18:05:29.037Z","etag":null,"topics":["docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kostas-python.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T14:09:39.000Z","updated_at":"2024-08-26T18:05:32.379Z","dependencies_parsed_at":"2024-08-26T18:05:30.452Z","dependency_job_id":null,"html_url":"https://github.com/kostas-python/sshconnections-with-Docker","commit_stats":null,"previous_names":["kostas-python/sshconnections-with-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostas-python%2Fsshconnections-with-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostas-python%2Fsshconnections-with-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostas-python%2Fsshconnections-with-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostas-python%2Fsshconnections-with-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kostas-python","download_url":"https://codeload.github.com/kostas-python/sshconnections-with-Docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240576483,"owners_count":19823293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker"],"created_at":"2025-02-24T23:48:33.285Z","updated_at":"2026-05-18T07:02:06.562Z","avatar_url":"https://github.com/kostas-python.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"SSH Connections Project for training perpose\n\nOverview\nThis project includes a script (connect.sh) for connecting to Docker containers using SSH. It automates the process of connecting to two specific containers within a Docker network.\n\nPrerequisites\nDocker: Ensure Docker is installed and running on your machine.\nSSH Access: Ensure you have SSH access configured for the Docker containers.\nSetup\nClone the Repository\n\nClone this repository to your local machine:\n\nbash\nCopy code\ngit clone https://github.com/kostas-python/sshconnections-with-Docker\nNavigate to the Project Directory\n\nbash\nCopy code\ncd your-repo-name\nVerify Docker Containers\n\nEnsure your Docker containers are running. Use the following command to list running containers:\n\nbash\nCopy code\ndocker ps\nEnsure container1 and any other relevant containers are listed.\n\nUpdate SSH Script\n\nModify the connect.sh script if necessary. Ensure that the IP addresses or hostnames in the script match those of your Docker containers.\n\nUsage\nMake the Script Executable\n\nMake sure the connect.sh script is executable:\n\nbash\nCopy code\nchmod +x connect.sh\nRun the Script\n\nExecute the script to connect to the Docker containers:\n\nbash\nCopy code\n./connect.sh\nYou will be prompted to enter the SSH password for each container.\n\nExample connect.sh Script\nThe connect.sh script should look like this:\n\nbash\nCopy code\n#!/bin/bash\n\n# SSH to the first Docker container\nssh root@172.17.0.2\n\n# SSH to the second Docker container (replace with actual IP)\nssh root@172.17.0.3\n\nPassword to connect to containers 123456\n\nTroubleshooting\nConnection Issues: If you encounter connection issues, verify that the Docker containers are running and accessible. Check the container IP addresses with docker inspect.\n\nSSH Authentication: Ensure that SSH authentication is correctly set up and that you are using the correct username and password. Consider using SSH keys for improved security.\n\nPermissions: Ensure that your user has the necessary permissions to execute Docker commands and access the containers.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostas-python%2Fsshconnections-with-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkostas-python%2Fsshconnections-with-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostas-python%2Fsshconnections-with-docker/lists"}