Created
November 5, 2026 14:06
-
-
Save markuman/acd2c2e7e08c849cfafe9e47becc1ef4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| podman run -ti --rm -p 127.0.0.1:2222:22 alpine:3.21 /bin/ | |
| # im alpine:3.21-container: | |
| cd /tmp | |
| BASE=https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64 | |
| for p in openssh-server-9.9_p2-r0 openssh-server-common-9.9_p2-r0 \ | |
| openssh-keygen-9.9_p2-r0 openssh-client-common-9.9_p2-r0 \ | |
| openssh-client-default-9.9_p2-r0; do | |
| wget "$BASE/$p.apk" | |
| done | |
| apk add --allow-untrusted /tmp/*.apk | |
| ssh-keygen -A | |
| adduser -D bob | |
| echo 'bob:hunter2' | chpasswd # echter hash → salt-leihe | |
| echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config | |
| /usr/sbin/sshd -D -e | |
| # client | |
| ssh -o PubkeyAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@127.0.0.1 -p 2222 | |
| Warning: Permanently added '[127.0.0.1]:2222' (ED25519) to the list of known hosts. | |
| root@127.0.0.1's password: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
| Permission denied, please try again. | |
| root@127.0.0.1's password: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
| Welcome to Alpine! | |
| The Alpine Wiki contains a large amount of how-to guides and general | |
| information about administrating Alpine systems. | |
| See <https://wiki.alpinelinux.org/>. | |
| You can setup the system with the command: setup-alpine | |
| You may change this message by editing /etc/motd. | |
| 45843db92378:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment