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

Related guides

Guides for the config you just generated

SSH client for Mac: how to choose one

Compare iTerm2, SecureCRT, Termius, and DartShell on host lists, credentials, and jump hosts.

Import SSH server connections on Mac

Move an existing ssh config into a searchable host list without retyping every server.

Share SSH config across your Macs

Keep one SSH config in iCloud Drive so every Mac reads the same host aliases.

Connect through an SSH jump host

Set up ProxyJump and a bastion host for production servers from a Mac.

SSH with a private key on Mac

Sort out key permissions, passphrases, and authentication failures.