Differences

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

2019-10-23 2020-02-05
Bug 1798: Allow configuring additional PuTTY settings (e.g. terminal settings) to be used when opening a session in PuTTY (martin) Win32-OpenSSH (martin)
Line 79: Line 79:
===== [[openssh]] Using OpenSSH Instead of PuTTY ===== ===== [[openssh]] Using OpenSSH Instead of PuTTY =====
 +
 +==== Win32-OpenSSH ====
 +
 +Windows 10 includes Microsoft build of OpenSSH ([[https://github.com/PowerShell/Win32-OpenSSH|Win32-OpenSSH]]) including the ''ssh.exe''. Win32-OpenSSH can also be manually [[guide_windows_openssh_server|installed to older versions of Windows]].
 +
 +If you want to use Win32-OpenSSH ''ssh'' client from, instead of PuTTY, you need to configure the following command [[ui_pref_integration_app|preferences]]: &winpath &win64
 +
 +<code>
 +C:\Windows\Sysnative\OpenSSH\ssh.exe !U@!@ -p !#
 +</code>
 +
 +Also, make sure that [[ui_pref_integration_app#other_options|//Remember session password and pass it to PuTTY//]] is turned off.
 +
 +You can also have the remote shell open in the same working directory as WinSCP, using a [[integration_putty#putty_startup_directory|similar trick as with PuTTY]]:
 +
 +<code>
 +C:\Windows\Sysnative\OpenSSH\ssh.exe !U@!@ -p !# -t "cd !/ ; /bin/bash"
 +</code>
 +
 +(assuming a Unix-like system and the ''bash'' shell)
 +
 +==== WSL ====
If you want to use OpenSSH ''ssh'' client in [[https://docs.microsoft.com/en-us/windows/wsl/about|Windows Subsystem for Linux]],((Also known as "Bash on Ubuntu on Windows".)) instead of PuTTY, you need to configure the following command [[ui_pref_integration_app|preferences]]: &winpath &win64 If you want to use OpenSSH ''ssh'' client in [[https://docs.microsoft.com/en-us/windows/wsl/about|Windows Subsystem for Linux]],((Also known as "Bash on Ubuntu on Windows".)) instead of PuTTY, you need to configure the following command [[ui_pref_integration_app|preferences]]: &winpath &win64
Line 85: Line 107:
"C:\Windows\Sysnative\bash.exe" -c "ssh !U@!@ -p !#" "C:\Windows\Sysnative\bash.exe" -c "ssh !U@!@ -p !#"
</code> </code>
 +
 +Also, make sure that [[ui_pref_integration_app#other_options|//Remember session password and pass it to PuTTY//]] is turned off.
You can also have the remote shell open in the same working directory as WinSCP, using a [[integration_putty#putty_startup_directory|similar trick as with PuTTY]]: You can also have the remote shell open in the same working directory as WinSCP, using a [[integration_putty#putty_startup_directory|similar trick as with PuTTY]]:

Last modified: by martin