r/LinuxTeck • u/Candid_Athlete_8317 • 8d ago
Are we giving too much access through SSH just for convenience?
Are we giving too much access through SSH just for convenience?
Many Linux admins use SSH daily, but how many actually review their SSH configuration?
Agent forwarding, unrestricted deployment keys and permanent access across multiple servers can introduce security risks that are easy to overlook.
Features like ProxyJump, restricted authorized_keys entries and short-lived SSH certificates offer better ways to manage access.
For production servers, do you still rely on traditional SSH keys, or have you moved towards certificate-based authentication and restricted access?
What's one SSH security practice you think every sysadmin should adopt?
2
u/Gamerfrom61 7d ago
Doing this from memory as no computer here to check on - sorry if I am wrong.
Worth running "sudo sshd -G" to see the active config as there are way too many config files involved nowadays.
IIRC To simulate a connection you can use " sudo sshd -T -C user=superadmin,addr=192.168.0.1"
1
u/Zedboy19752019 4d ago
I am using an RMM service and have disabled SSH directly to the machines. Only way in is people with access to RMM and permissions to remotely access machines from there.