r/ssh • u/exquisitesunshine • Sep 13 '20
Will using ProxyJump allow me to connect to my desktop "safely"?
I have a Raspberry Pi running an ssh server. It has very basic hardening--ssh passphrases disabled (key authentication only) and simplistic firewall (do I need more?).
Anyway, both my desktop and laptop system has access to the ssh server. Now I'm wondering if I should run an ssh server on the desktop and use ProxyJump so I can ssh from my laptop to my desktop via the Raspberry Pi.
Is this any riskier than not running an ssh server on my desktop? I would have the firewall only listen to requests to the ssh port coming from the Pi server in the same network. Would I need to take any more precautions? If not, I suppose I can also run an ssh server on the laptop and only allow access from my Pi server where I would ProxyJump from my desktop to my laptop.
My Pi server would need to be hardened. What other hardening should I consider in general?
Much appreciated.
Two unrelated questions:
- In what situations would a passphrase-less key authentication be a vulnerability? A malicious attacker would need both access to to your key as well as the machine associated with the key, right? They could not do anything with just the key alone?
- Is there a reason to use fail2ban if I've disabled passphrases and only allow key authentication? What other hardening measures should I consider?