hn.today

SSH Is the Most Underrated Platform in Tech

milkcrunch.com8 points1 comments
Screenshot of SSH Is the Most Underrated Platform in Tech

SSH is commonly treated as a way to open a remote shell, but it is a general-purpose, encrypted channel that also supports file transfer, port forwarding, jump hosts, connection reuse, and certificate-based access. The central argument is that developers overlook these long-established capabilities and often add software or services for tasks SSH can already handle. A readable ~/.ssh/config can replace repeated command-line options, assign different keys to different hosts, and route internal connections through a bastion. Local forwarding can expose a remote database through a localhost port; remote forwarding can make a laptop’s development server reachable from elsewhere; and dynamic forwarding can create a SOCKS proxy. ProxyJump also lets tools such as scp, rsync, and VS Code connect through intermediate hosts as if directly connected.

The practical recommendations include using SSH multiplexing to reuse authenticated connections and reduce repeated setup time, and preferring ProxyJump over agent forwarding when passing through a bastion. Agent forwarding exposes the forwarded authentication agent to processes on the remote host, creating a risk if that host is compromised; ProxyJump keeps private keys on the user’s machine. For organizations, SSH certificates can simplify access management by letting servers trust a certificate authority rather than maintaining every user’s key in each authorized_keys file. SSH does not replace VPNs in every situation: VPNs suit full network access, and specialized services may add compliance or auditing features. But for reaching a particular internal service, SSH often provides a simpler, already available solution.

Read on milkcrunch.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.