Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,8 @@ node_modules/
*.sub
*.sub.run
script_*.py
# Job execution temporary files
err
log
# JSON files with hash names (job state files)
[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]*.json
4 changes: 2 additions & 2 deletions doc/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ Specify the ProxyCommand directly using {dargs:argument}`proxy_command <machine[
"hostname": "internal-server.company.com",
"username": "user",
"key_filename": "/path/to/internal_key",
"proxy_command": "ssh -W %h:%p -i /path/to/jump_key jumpuser@bastion.company.com"
"proxy_command": "ssh -W internal-server.company.com:22 -i /path/to/jump_key jumpuser@bastion.company.com"
}
}
```

The proxy command uses OpenSSH ProxyCommand syntax. `%h` and `%p` are replaced with the target hostname and port.
**Note**: Unlike OpenSSH, Paramiko's ProxyCommand requires explicit hostname and port instead of `%h:%p` placeholders. The proxy command must specify the actual target hostname and port that matches the `hostname` and `port` in the remote profile.

This configuration establishes the connection path: Local → Jump Host → Target Server.

Expand Down
2 changes: 1 addition & 1 deletion examples/machine/ssh_proxy_command.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"username": "user",
"port": 22,
"key_filename": "~/.ssh/id_rsa",
"proxy_command": "ssh -W %h:%p -i ~/.ssh/jump_key jumpuser@bastion.company.com"
"proxy_command": "ssh -W internal-server.company.com:22 -i ~/.ssh/jump_key jumpuser@bastion.company.com"
}
}
Loading