Is there a way to make a remote port only accessible for a specific user?
My current setup:
I'm forwarding a port to my local machine to access it via SSH on the go. I am able to directly access my local machine without logging into the remote machine first.
For increased security I want that port not to be publicly accessible but accessible for specific users on the remote machine or any user thats logged in at the remote machine.
Short scheme of what im trying to achieve:
Internet -> ssh to remote machine -> login -> ssh to local machine via forwarded port -> login