ssh config example

Generate an SSH config example you can paste into `~/.ssh/config`

Build a clean SSH config snippet for a single host, a bastion setup, or a local port forwarding workflow, then copy it directly into your config file.

Instant preview updates as you type.

Quick presets

Connection details

Advanced options

Generated SSH config

Copy this block into your SSH config file.

# Generated by DartShell tools
# Paste this into ~/.ssh/config

Host prod-api
  HostName 203.0.113.10
  User ubuntu
  Port 22
  IdentityFile ~/.ssh/id_ed25519
  IdentitiesOnly yes
  ServerAliveInterval 60
  ServerAliveCountMax 3

When the config is ready, use it inside DartShell

Keep your SSH hosts, jump hosts, file transfer, and database access in one Mac-first workspace instead of juggling separate apps.

What this SSH config example covers

Basic host alias

Use a short alias so you can run `ssh prod-api` instead of typing the full hostname every time.

Jump host flow

Add `ProxyJump bastion` when your target machine is only reachable through another SSH server.

Port forwarding

Use `LocalForward` to tunnel local traffic, such as a database port, through your SSH connection.

Starter examples

Simple VPS

Host app-server
  HostName 203.0.113.10
  User ubuntu
  Port 22
  IdentityFile ~/.ssh/id_ed25519

Behind a bastion

Host internal-db
  HostName 10.0.1.24
  User ec2-user
  ProxyJump bastion
  IdentityFile ~/.ssh/id_ed25519

Database tunnel

Host reporting-db
  HostName 192.168.10.12
  User ops
  LocalForward 5432 127.0.0.1:5432
  ServerAliveInterval 60