diff --git a/README.md b/README.md index d3a5f87..2522a20 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,17 @@ _(local machine without direct access to target-server)_ ssh -f -N -L localhost:8001:target-server:80 usr@jump-machine.local ``` -### kubernetes - ssh client +## ssh-client + +### podman + +``` bash +podman container run \ + -v $HOME/.ssh:/root/.ssh:ro,Z \ + git.limbosolutions.com/kb/ssh-client:latest +``` + +### kubernetes ```yaml kind: Pod @@ -104,3 +114,16 @@ spec: - key: SSH_PRIVATE_KEY path: SSH_PRIVATE_KEY ``` + +### Local Build and Development + +``` bash +podman build docker/ssh-client \ + --build-context ssh-client=docker/ssh-client \ + -t git.limbosolutions.com/kb/ssh-client:local-dev + +podman container run -it \ + -v $HOME/.ssh:/root/.ssh:ro,Z \ + git.limbosolutions.com/kb/ssh-client:local-dev \ + /bin/bash +```