Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanbekker/docker-passwordless-ssh
Container that grants SSH to normal user for no auth (ephemeral and testing environments)
https://github.com/ruanbekker/docker-passwordless-ssh
docker passwordless-ssh ssh
Last synced: about 2 months ago
JSON representation
Container that grants SSH to normal user for no auth (ephemeral and testing environments)
- Host: GitHub
- URL: https://github.com/ruanbekker/docker-passwordless-ssh
- Owner: ruanbekker
- Created: 2022-08-02T13:31:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T13:34:41.000Z (over 2 years ago)
- Last Synced: 2023-03-11T16:27:56.319Z (almost 2 years ago)
- Topics: docker, passwordless-ssh, ssh
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-passwordless-ssh
Container that grants SSH to normal user for no auth (ephemeral and testing environments)## Why not auth
purely for debugging / homelab purposes
### Auto Generated Usernames
Running the container with generated usernames:
```
$ docker run -it -p 2222:22 ruanbekker/ssh-noauth
SSH User is: user-c2ae30179dbd9f01be1a2b6c
```SSH to the Container:
```
$ ssh -p 2222 user-c2ae30179dbd9f01be1a2b6c@localhost 130 ↵+ Container Info:
Name: de276bd33aa2
CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 1999M
Disk: 58.4G
Distro: Alpine:3.9.3CPU Load: 0.20, 0.16, 0.10
Free Memory: 438M
Free Disk: 58.4GContainer Address: 172.17.0.3
Public Address: x.x.x.x
SSH User: user-c2ae30179dbd9f01be1a2b6cde276bd33aa2:~$
```### Specifying your own username
Running the container with your own username:
```
$ docker run -it -e SSH_USER=ruan -p 2222:22 ruanbekker/ssh-noauth
SSH User is: ruan
```SSH to the container:
```
$ ssh -p 2222 ruan@localhost+ Container Info:
Name: 9b9b20b498d0
CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 1999M
Disk: 58.4G
Distro: Alpine:3.9.3CPU Load: 1.35, 0.42, 0.19
Free Memory: 431M
Free Disk: 58.4GContainer Address: 172.17.0.3
Public Address: xx.xx.xx.xx
SSH User: ruan9b9b20b498d0:~$
```