diff --git a/docs/connect/ssh.md b/docs/connect/ssh.md index cbca2f75..57f3e1de 100644 --- a/docs/connect/ssh.md +++ b/docs/connect/ssh.md @@ -541,12 +541,14 @@ In the `` option you can use the node IP address or the node name. #### Port forwarding over SSH jumps -You can combine the jump command with other options, such as [port forwarding](#ssh-port-forwarding), for instance to access from you local machine a web server running in a compute node. Assume for instance you have a server running in `iris-014` and listens at port `2222`, and that you would like to forward the port `2222` to the `2222` port of you local machine. The, call the port forwarding command with a jump though the login node: +You can combine the jump command with other options, such as [port forwarding](#ssh-port-forwarding), for instance to access from you local machine a web server running in a compute node. Assume for instance that you have a server running in `iris-014` and listens at the IP `127.0.0.1` and port `2222`, and that you would like to forward the remote port `2222` to the `2222` port of you local machine. The, call the port forwarding command with a jump though the login node: ```bash -ssh -J iris-cluster -L 1111:iris-014:2222 @iris-014 +ssh -J iris-cluster -L 1111:127.0.0.1:2222 @iris-014 ``` +This command can be combined with [passwordless access](#passwordless-ssh-jumps) to the cluster node. + ## Extras Tools around SSH * [Assh](https://github.com/moul/advanced-ssh-config) - Advanced SSH config is a transparent wrapper that make `~/.ssh/config` easier to manage