modified: README.md
This commit is contained in:
25
README.md
25
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
|
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
|
```yaml
|
||||||
kind: Pod
|
kind: Pod
|
||||||
@@ -104,3 +114,16 @@ spec:
|
|||||||
- key: SSH_PRIVATE_KEY
|
- key: SSH_PRIVATE_KEY
|
||||||
path: 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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user