Hacker News new | ask | show | jobs
by bopodelvalle 3130 days ago
Can you explain a little bit more how do you do this?
2 comments

via tor: https://nurdletech.com/linux-notes/ssh/hidden-service.html

via reverse proxy: `ssh -NT -R 1234:localhost:22 youruser@yourmachine.com` Now if you connect to youruser@yourmachine.com you can then ssh to your inaccessible machine with `ssh inaccessibleuser@inaccessiblemachine:1234 `

I don’t know much but a little googling reveals this: https://nurdletech.com/linux-notes/ssh/hidden-service.html
After the HN comment on this a few weeks ago I implemented the Tor ssh method. The bottom of this script is what I run on my remote servers to get Tor ssh access, if want to see an example of working code - https://github.com/riazarbi/serversetup/blob/master/remote_d...
If you don't want the anonymity benefits, you can change the hops from 3 to 1 (from the client) to improve latency.
There's also a server (hidden service) option to disable anonymity. Use with caution, of course.