Viewing and Copying Commands¶
Copy generated SSH or AWS Session Manager commands for use in terminals or scripts.
Access the Command Section¶
- Select a tunnel in the main list
- Scroll to the Command section (collapsed by default)
- Click the disclosure triangle to expand
Command Types¶
SSH Tunnels¶
| Parameter | Example | Purpose |
|---|---|---|
-p | -p 2222 | Port (if non-standard) |
-l | -l ubuntu | Username |
-i | -i ~/.ssh/prod_key | Identity file path |
| Host | prod.example.com | Target server |
AWS Session Manager¶
| Parameter | Purpose |
|---|---|
--target | EC2 instance ID |
--document-name | Session document |
--profile | AWS profile (optional) |
--region | AWS region (optional) |
Copy to Clipboard¶
Click Copy or press Cmd+Shift+C with the detail view active.
The command is copied with proper shell escaping.
Warnings¶
Warnings appear above the command when configuration issues are detected:
| Warning | Action |
|---|---|
| No SSH key configured | Add key in tunnel settings |
| Identity file not found | Verify path or generate key |
| Host verification disabled | Enable in settings if possible |
| AWS credentials missing | Configure AWS credentials |
| Invalid AWS instance ID | Verify ID in AWS console |
Informational Only
Warnings don't prevent command generation—they alert you to potential issues.
Common Uses¶
Paste in Terminal¶
- Copy command (Cmd+Shift+C)
- Open Terminal
- Paste (Cmd+V)
- Press Enter
Add to SSH Config¶
Use the command parameters to create an SSH config entry:
Then connect with: ssh prod-db
Best Practices¶
- Review before executing - Verify all parameters are correct
- Fix warnings first - Address configuration issues before connecting
- Protect SSH keys - Ensure identity files have
600permissions - Don't share commands - They may contain sensitive configuration details
Troubleshooting¶
Command Doesn't Work¶
- Check warnings section for configuration issues
- Verify SSH key permissions (
chmod 600 ~/.ssh/key) - Ensure host is reachable
AWS Session Fails¶
- Verify AWS credentials are configured
- Check IAM permissions for Session Manager
- Confirm instance ID is correct
Related¶
- SSH Key Management - Manage SSH keys
- AWS Session Manager - AWS SSM integration
- Creating Tunnels - Set up tunnels
- Keyboard Shortcuts - All shortcuts