

0·
25 days agoEither use the sftp
command, it also supports the -J
option, or use SSH tunneling.
For example here I bind the homelab port 4533 to my local port 8080.
$ ssh -L 8080:vpn-homelab-ip:4533 user@vps-ip
(user@vps) $
I can now open a new shell and run:
$ curl http://localhost:8080/
<a href="/app/">Found</a>.
You could also do it this way:
$ ssh -L 8080:localhost:4533 user@vpn-homelab-ip -J user@vps-ip
(user@homelab) $
Pretty cool as a learning exercise. As a follow up scenario maybe try moving this infrastructure to another cloud provider because AWS deleted your account without warning or try a multi-cloud deployment.