I have an application server that runs on a compute node. The server opens a port (9000) and I then run a command for tunneling between my local machine and the server:
ssh -N -f -L 9000:compute-node:9000 user@myhpc
Once this is done I can essentially use my server's web interface on a browser with localhost:9000
I use ecdsa -b 521
encryption with password-less authentication, the public key has been copied to the HPC. I was told that this command exposes the HPC to the internet and it's not safe. I'm a bit skeptical about this answer and I would like to have opinions on the safety of tunneling in this manner.