Update forward-ssh.sh script for Swarm support
- Address limitations in Swarm with loopback binding - Ensure compatibility with localhost DNS wildcard A record - Enable port forwarding on 80 and 443 using VM IP for Swarm compatibility - Retain 8443:localhost:8443 for non-Swarm setups
This commit is contained in:
parent
2c00858590
commit
60fafed9cd
@ -41,8 +41,8 @@ function ssh_connect {
|
|||||||
printf "[INFO]: Starting new vagrant SSH tunnel on PID "
|
printf "[INFO]: Starting new vagrant SSH tunnel on PID "
|
||||||
sudo -u "$USER" ssh -fNT -i "$PRIVATE_KEY" \
|
sudo -u "$USER" ssh -fNT -i "$PRIVATE_KEY" \
|
||||||
-L 22:localhost:22 \
|
-L 22:localhost:22 \
|
||||||
-L 80:localhost:80 \
|
-L 80:"$HOST_IP":80 \
|
||||||
-L 443:localhost:443 \
|
-L 443:"$HOST_IP":443 \
|
||||||
-L 8443:localhost:8443 \
|
-L 8443:localhost:8443 \
|
||||||
-o UserKnownHostsFile=/dev/null \
|
-o UserKnownHostsFile=/dev/null \
|
||||||
-o StrictHostKeyChecking=no \
|
-o StrictHostKeyChecking=no \
|
||||||
|
Loading…
Reference in New Issue
Block a user