Sign inSign up

lrabbt/openconnect-ssh

By lrabbt

•Updated over 6 years ago

This image's idea is to connect to a VPN using Openconnect and access the container using SSH.

Image
0

1.1K

lrabbt/openconnect-ssh repository overview

⁠Openconnect with SSH Server

This image's idea is to connect to a VPN using Openconnect and access the container using SSH.

⁠Environment Variables

  • SSH_PWD - Set SSH password. Default value is 'default'.
  • VPN_USER - Vpn user.
  • VPN_PWD - Vpn password.
  • VPN_GROUP - Vpn user group.
  • VPN_CERT - Server cetificate.
  • VPN_IP - Host IP.

⁠Exposed Port

Port 22 - SSH Server port

⁠Usage Example

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

Tag summary

Content type

Image

Digest

Size

87.5 MB

Last updated

over 6 years ago

docker pull lrabbt/openconnect-ssh