Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rootfs): support ssh auth socket forward #53

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

BlackHole1
Copy link
Member

OVM will create an ssh auth sock in the host, then map it to the guest via vsock, so that the container inside can use the host's ssh key.

podman run -v /opt/ovm:/opt/ovm -e SSH_AUTH_SOCK=/opt/ovm/ssh-auth.sock IMAGE

Ref: https://github.com/oomol-lab/ovm-ssh-agent

OVM will create an ssh auth sock in the host, then map it to the guest via vsock, so that the container inside can use the host's ssh key.

```shell
podman run -v /opt/ovm:/opt/ovm -e SSH_AUTH_SOCK=/opt/ovm/ssh-auth.sock IMAGE
```

Ref: https://github.com/oomol-lab/ovm-ssh-agent

Signed-off-by: Black-Hole1 <bh@bugs.cc>
@BlackHole1 BlackHole1 merged commit 82452b1 into oomol-lab:main Jan 17, 2024
@BlackHole1 BlackHole1 deleted the support-ssh-auth branch January 17, 2024 09:20
BlackHole1 added a commit to BlackHole1/ovm that referenced this pull request Jan 17, 2024
OVM will create an ssh auth sock in the host, then map it to the guest via vsock, so that the container inside can use the host's ssh key.

Ref:
- https://github.com/oomol-lab/ovm-ssh-agent
- oomol-lab/ovm-core#53

Signed-off-by: Black-Hole1 <bh@bugs.cc>
BlackHole1 added a commit to oomol-lab/ovm that referenced this pull request Jan 17, 2024
OVM will create an ssh auth sock in the host, then map it to the guest
via vsock, so that the container inside can use the host's ssh key.

Ref:
- https://github.com/oomol-lab/ovm-ssh-agent
- oomol-lab/ovm-core#53

Signed-off-by: Black-Hole1 <bh@bugs.cc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant