Using a SSH bastion, but only when I'm touching grass
Summary
A blog post explaining how to configure SSH to automatically use a bastion host only when the target hostname is not resolvable locally, using the Match directive and getent command.
View Cached Full Text
Cached at: 07/21/26, 06:41 AM
Similar Articles
Stop MITM on the first SSH connection, on any VPS or cloud provider
A new technique using cloud-init to inject temporary SSH host keys, protecting the first SSH connection to a new VM from man-in-the-middle attacks on any cloud provider. Includes a hardened open-source script implementation.
@iximiuz: https://x.com/iximiuz/status/2069036148077293614
A visual guide to SSH local and remote port forwarding, explaining how to access private services and expose local ports via SSH tunnels, with practical examples and configuration tips.
@PierceZhang34: Practical Guide to SSH Tunnels. Although I use SSH tunnels daily, it always takes a while to recall the correct command. Should it be a local or remote tunnel? What parameters are needed? Is the port order local:remote or the reverse? Through a series of experiments, the author created a visual cheat sheet. Link: http:…
This tutorial provides a visual cheat sheet and practical labs for SSH local and remote port forwarding, covering common use cases like accessing private databases and exposing local servers.
How to self-host servers in your living room on static IPs
A guide to self-hosting servers at home using L2TP tunnels and static IPs, bypassing ISP restrictions like CGNAT.
A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding
A practical tutorial explaining SSH local and remote port forwarding with diagrams and labs for accessing internal network services securely.