All posts
Guides

Friends Don't Let Friends Share SSH Keys

The era of the bastion host is over. Here's how to get rid of shared SSH keys, exposed jumphosts, and unnecessary complexity.

Stefan HedenströmAuthorStefan Hedenström·
Friends Don't Let Friends Share SSH Keys

A bastion or jumphost has long been the solution for reaching servers not exposed to the internet. It's time to leave the dinosaurs behind.

Why the bastion model is bad

  • You have to expose port 22 to the internet.
  • You manage SSH keys – often leading to shared private keys.
  • SSH hopping creates cognitive load and complicates file management.
  • Logging and access control are often insufficient.

What you should do instead

Identity-based access

Let an identity provider (Okta, Azure AD, Google) control who can log in – not a file with keys.

Short-lived certificates

Use e.g. Teleport, HashiCorp Boundary, or SSH certificates from Vault. The key lives for minutes, not years.

Zero Trust network

Cloudflare Access, Tailscale, or equivalent – access is based on identity + device posture, not on IP.

Full audit trail

All sessions are recorded and linked to a real person. No more anonymous jumphost logs.

Do you want help modernizing your access model? We build it with you.

Share
SHEBANG – hashtag och utropstecken
LinkedIn X
Talk to us
Ronnie Qvist
Ronnie Qvist
Sales & customer relations · SHEBANG
Usually replies within a few hours

Security questions around pipelines, access or compliance? I'll make sure the right SecOps consultant reaches out.

Reply same day
Right person, directly
No pitch
SecOps

Want to harden your environment without slowing delivery down?

Give us a short description of your stack and requirements, and we'll suggest concrete measures you can roll out step by step.

We usually reply the same day. Never spam.