Add this to your ~/.ssh/config
:
# Production environment
Host www-myapp-com
HostName ssh.rabbit.ci
User www-myapp-com-production-pod-a1b2c3
IdentityFile ~/.ssh/github_rsa
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 10
ServerAliveInterval 15
ServerAliveCountMax 3
# Development environment
Host www-myapp-com-dev
HostName ssh.rabbit.ci
User www-myapp-com-development-pod-x1y2z3
IdentityFile ~/.ssh/github_rsa
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 10
ServerAliveInterval 15
ServerAliveCountMax 3
# Connect to production
ssh www-myapp-com
# Connect to development
ssh www-myapp-com-dev
# Use SFTP
sftp www-myapp-com-dev
# Copy files
scp local.txt www-myapp-com-dev:/remote/path/
HostName
: The SSH server addressUser
: Your pod-specific usernameIdentityFile
: Your GitHub SSH keyStrictHostKeyChecking no
: Skip host verificationUserKnownHostsFile /dev/null
: Don't store host keysRequestTTY force
: Ensure proper terminal allocationConnectTimeout 10
: Connection timeout in secondsServerAliveInterval 15
: Keep connection aliveServerAliveCountMax 3
: Maximum keepalive retries