Differences
This shows you the differences between the selected revisions of the page.
| 2018-11-09 | 2019-10-04 | ||
| footnote after punctuation (martin) | two hop tunnel (martin) | ||
| Line 11: | Line 11: | ||
| 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]]. 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]]. |
| In the text, //Server B// stays for the target server and //Server A// stays for the server thru which you need to connect. | In the text, //Server B// stays for the target server and //Server A// stays for the server thru which you need to connect. | ||
| Line 17: | Line 17: | ||
| ===== [[tunnel_winscp]] Setting up tunnel in WinSCP ===== | ===== [[tunnel_winscp]] Setting up tunnel in WinSCP ===== | ||
| See //[[ui_login_tunnel|Tunnel page]]// on Advanced Site Settings dialog. | See //[[ui_login_tunnel|Tunnel page]]// on Advanced Site Settings dialog. | ||
| + | |||
| + | ===== [[tunnel_two]] Setting up two hop tunnel using Plink ===== | ||
| + | |||
| + | You can use Plink to implement the first hop by using the following [[ui_login_proxy#command|//Local proxy command//]]:((For details, see [[https://superuser.com/q/477312/213663#1489111|Using WinSCP with SFTP server and two SSH tunnel hops)) | ||
| + | |||
| + | <code> | ||
| + | plink.exe %user@%proxyhost -nc %host:%port | ||
| + | </code> | ||
| + | |||
| + | For the second hop, use //[[ui_login_tunnel|Tunnel page]]// as above. | ||
| ===== [[tunnel_putty]] Setting up tunnel using PuTTY for SFTP/SCP session ===== | ===== [[tunnel_putty]] Setting up tunnel using PuTTY for SFTP/SCP session ===== | ||