SSH Tunnel & Config Builder v3
🛡️ Enable Bastion (ProxyJump)
🔑 Agent Forwarding (ForwardAgent)
🖥️ X11 Forwarding (ForwardX11)
🔒 Disable Strict Host Checking
💓 KeepAlive (ServerAliveInterval)
🗜️ Compression
⚡ ControlMaster (connection multiplexing)
Connection Map
~/.ssh/config block
One-liner CLI command
Share MySysAd

⚠️ IMPORTANT DISCLAIMER: The tools and scripts on this site are provided "AS IS" for educational purposes.

Review destructive commands before executing. By using this site, you assume all risk and agree to our Full Terms of Service.

SSH tunnels and config files, written for you

Fill in the host, user and key, add a bastion or port forwards, and get both a ~/.ssh/config block and the equivalent one-line ssh command. Once the config is in place, ssh myhost does the whole job.

Common questions

How do I connect through a jump host or bastion?

ssh -J user@bastion user@internal-host, or in ~/.ssh/config add ProxyJump bastion under the internal host’s entry. Your key stays on your machine; the bastion only forwards the connection, which is safer than agent forwarding.

What is the difference between local and remote port forwarding?

Local forwarding (-L 8080:db.internal:5432) opens a port on your machine that leads to a service reachable from the server, for example a database behind a firewall. Remote forwarding (-R 9000:localhost:3000) opens a port on the server that leads back to your machine.

How do I set up a SOCKS proxy over SSH?

ssh -D 1080 -N user@host starts a SOCKS5 proxy on local port 1080; point a browser or curl --socks5-hostname localhost:1080 at it and traffic leaves from the server. -N means no remote command, just the tunnel.

How do I stop SSH connections from dropping when idle?

Add ServerAliveInterval 60 and ServerAliveCountMax 3 to the host entry. The client then sends a keep-alive every minute, which stops firewalls and NAT routers from closing quiet connections.

How do I reuse one SSH connection for many sessions?

Connection sharing: ControlMaster auto, ControlPath ~/.ssh/cm-%r@%h:%p and ControlPersist 10m. New sessions, scp and git over SSH then start instantly, without logging in again.

Related tools: SSH Doctor · User & sudo Builder · All tools A–Z