This image's idea is to connect to a VPN using Openconnect and access the container using SSH.
1.1K
This image's idea is to connect to a VPN using Openconnect and access the container using SSH.
Port 22 - SSH Server port
Export all variables and tunnel the SSH port:
docker run -d --name vpn \
--privileged \
-p 2222:22 \
-e SSH_PWD='comein' \
-e VPN_USER='best_admin' \
-e VPN_PWD='supersecurepassword' \
-e VPN_GROUP='my_group' \
-e VPN_CERT='sha1:b8a490b3b85b0ec3a200f952eb6966765c1c1eda' \
-e VPN_IP='https://192.168.0.56' \
lrabbt/openconnect-ssh
If you want to run 'bash' directly on 'docker run', you need to pass 'DETACHED' environment variable:
docker run -it --name vpn \
--privileged \
-p 2222:22 \
-e DETACHED='false' \
-e SSH_PWD='comein' \
-e VPN_USER='best_admin' \
-e VPN_PWD='supersecurepassword' \
-e VPN_GROUP='my_group' \
-e VPN_CERT='sha1:b8a490b3b85b0ec3a200f952eb6966765c1c1eda' \
-e VPN_IP='https://192.168.0.56' \
lrabbt/openconnect-ssh
Content type
Image
Digest
Size
87.5 MB
Last updated
over 6 years ago
docker pull lrabbt/openconnect-ssh