diff --git a/README.md b/README.md index 0d571bb..fb62521 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,10 @@ $ docker run -it \ --name jumpbox \ -v $(pwd)/jumpbox:/var/lib/jumpbox \ - -e "ROOT_AUTHORIZED_KEYS=/var/lib/jumpbox/authorized_keys" - -e "HOSTKEYS=/var/lib/jumpbox/ssh_host_ed25519_key;/var/lib/jumpbox/ssh_host_rsa_key" - -e "USERADD=jumpbox:1000:1000:/bin/bash" - -e "GROUPADD=jumpbox:1000" + -e "ROOT_AUTHORIZED_KEYS=/var/lib/jumpbox/authorized_keys" \ + -e "HOSTKEYS=/var/lib/jumpbox/ssh_host_ed25519_key;/var/lib/jumpbox/ssh_host_rsa_key" \ + -e "USERADD=jumpbox:1000:1000:/bin/bash" \ + -e "GROUPADD=jumpbox:1000" \ -p 1022:22 \ pommib/jumpbox:latest ``` @@ -53,3 +53,18 @@ services: USERADD: jumpbox:1000:1000:/bin/bash GROUPADD: jumpbox:1000 ``` + +## Login as root + +``` +$ ssh -l root 127.0.0.1 -p 1022 +``` + +## Login as jumpbox + +To login as user jumpbox, make sure `/home/jumpbox` is a mounted volume +containing `.ssh/authorized_keys` containing your public key. + +``` +$ ssh -l jumpbox 127.0.0.1 -p 1022 +```