Differences

This shows you the differences between the selected revisions of the page.

guide_tunnel 2019-10-04 guide_tunnel 2026-06-02 (current)
Line 10: Line 10:
===== Connecting through SSH tunnel ===== ===== Connecting through SSH tunnel =====
One possible approach is to setup SSH [[tunneling|tunnel]] and connect through the tunnel. One possible approach is to setup SSH [[tunneling|tunnel]] and connect through the tunnel.
 +
 +For simple cases, you can [[ui_login_tunnel|setup tunnel directly in WinSCP]].
For more complex cases (non-default %%SSH%% settings, multiple hops, FTP protocol, etc.) you need to setup tunnel using external tool. Example of such tool is [[&url(putty)|PuTTY SSH client]] or [[https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter7.html|Plink]]. For more information see [[&url(puttydoc)/Chapter3.html#using-port-forwarding|PuTTY documentation on port forwarding]]. For more complex cases (non-default %%SSH%% settings, multiple hops, FTP protocol, etc.) you need to setup tunnel using external tool. Example of such tool is [[&url(putty)|PuTTY SSH client]] or [[https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter7.html|Plink]]. For more information see [[&url(puttydoc)/Chapter3.html#using-port-forwarding|PuTTY documentation on port forwarding]].
Line 44: 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.
===== [[ftp_putty]] Setting up tunnel using PuTTY for FTP session ===== ===== [[ftp_putty]] Setting up tunnel using PuTTY for FTP session =====
 +
==== Setting up the tunnel ==== ==== 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: 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:
Line 65: 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.

Last modified: by martin