Differences
This shows you the differences between the selected revisions of the page.
| guide_tunnel 2022-02-05 | guide_tunnel 2026-06-02 (current) | ||
| Line 32: | Line 32: | ||
| ===== [[tunnel_putty]] Setting up tunnel using PuTTY for SFTP/SCP session ===== | ===== [[tunnel_putty]] Setting up tunnel using PuTTY for SFTP/SCP session ===== | ||
| Note that this is for illustration only, such a simple tunnel can be setup directly in WinSCP. | Note that this is for illustration only, such a simple tunnel can be setup directly in WinSCP. | ||
| + | |||
| + | ==== Setting up the tunnel ==== | ||
| + | In PuTTY configure a session for //Server A//. I.e. particularly fill in //Host Name//. Then switch to //Connection > SSH > Tunnels// page. And add new forwarded port: | ||
| + | * //Source port//: Any free local port, typically above 3000. Example: 3111. | ||
| + | * //Destination//: Hostname and port of the //Server B// separated by colon (the same information you would fill on //Session// dialog of WinSCP if you were connecting directly). The port will typically be SSH port 22. Example: example.com:22. | ||
| + | * Make sure forwarded port type is //Local// (default). | ||
| + | * Click //Add//. | ||
| + | Now start the session. Port forwarding starts to work only once you authenticate to //Server A//. Note that you need to keep the session open as long as you use the tunnel. | ||
| You can also setup a tunnel from command-line: | You can also setup a tunnel from command-line: | ||
| Line 38: | Line 46: | ||
| ==== [[tunnel_putty_connecting]] Connecting through the tunnel ==== | ==== [[tunnel_putty_connecting]] Connecting through the tunnel ==== | ||
| In WinSCP configure an SFTP/SCP session for //Server B//. Most settings will be like if you connect to //Server B// directly (username, password, etc.). The only differences are: | In WinSCP configure an SFTP/SCP session for //Server B//. Most settings will be like if you connect to //Server B// directly (username, password, etc.). The only differences are: | ||
| - | * //Host name//: Fill in "localhost". | + | * //Hostname//: Fill in "localhost". |
| * //Port number//: Fill in //Source port// of forwarded port. Example: 3111. | * //Port number//: Fill in //Source port// of forwarded port. Example: 3111. | ||
| Save the session and login. | Save the session and login. | ||
| Line 60: | Line 68: | ||
| In WinSCP configure an FTP session for //Server B//. Then go to //[[ui_login_proxy|Proxy page]]// on Advanced Site Settings dialog: | In WinSCP configure an FTP session for //Server B//. Then go to //[[ui_login_proxy|Proxy page]]// on Advanced Site Settings dialog: | ||
| * Set //Proxy type// to SOCKS5.((This will force [[ui_login_connection#connection|passive mode]], if it was not set already.)) | * Set //Proxy type// to SOCKS5.((This will force [[ui_login_connection#connection|passive mode]], if it was not set already.)) | ||
| - | * //Proxy host name//: Fill in "localhost". | + | * //Proxy hostname//: Fill in "localhost". |
| * //Port number//: Fill in //Source port// of forwarded port. Example: 3111. | * //Port number//: Fill in //Source port// of forwarded port. Example: 3111. | ||
| Save the session and login. | Save the session and login. | ||