Differences

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

2017-09-05 2021-12-06
released 5.11 stable (martin) 5.20 Bug 1896: It is possible to import sessions from OpenSSH config file (martin)
Line 1: Line 1:
====== Importing Sites ====== ====== Importing Sites ======
-WinSCP allows you to import sites from [[&url(putty)|PuTTY SSH client]], [[https://filezilla-project.org/|FileZilla FTP client]] and host keys from OpenSSH ''known_hosts'' file.+WinSCP allows you to import sites from [[&url(putty)|PuTTY SSH client]], [[https://filezilla-project.org/|FileZilla FTP client]], OpenSSH ''config'' file and host keys from OpenSSH ''known_hosts'' file.
&screenshotpict(import) &screenshotpict(import)
Line 7: Line 7:
To open //Import session// dialog go to //Tools > Import Sites// on [[ui_login|Login dialog]]. To open //Import session// dialog go to //Tools > Import Sites// on [[ui_login|Login dialog]].
-On the dialog, select if you want to import from PuTTY, FileZilla or ''known_hosts''.+On the dialog, select if you want to import from PuTTY, FileZilla, OpenSSH ''config'' or ''known_hosts'' files.
-You will receive list of all sites/host keys stored in the selected application. Next to each site name there is a checkbox. Use it to select sites/keys you would like to import. By default WinSCP selects only sites with supported protocol,((It does not select Raw, Telnet, Rlogin and Serial sessions from PuTTY.)) for which there is no WinSCP site with the same name. You can alter the selection as you like. +You will receive list of all sites/host keys stored in the selected application or configuration file. Next to each site name there is a checkbox. Use it to select sites/keys you would like to import. By default WinSCP selects only sites with supported protocol,((It does not select Raw, Telnet, Rlogin and Serial sessions from PuTTY.)) for which there is no WinSCP site with the same name. You can alter the selection as you like.  
 + 
 +===== PuTTY =====
For PuTTY, WinSCP looks for sites in registry. If you use PuTTY clone, you can configure WinSCP to look for [[ui_pref_integration_app|its registry keys]] instead. For PuTTY, WinSCP looks for sites in registry. If you use PuTTY clone, you can configure WinSCP to look for [[ui_pref_integration_app|its registry keys]] instead.
 +
 +===== FileZilla =====
For FileZilla, WinSCP looks for sites in ''C:\Users\username\AppData\Roaming\FileZilla\sitemanager.xml''. &winpath For FileZilla, WinSCP looks for sites in ''C:\Users\username\AppData\Roaming\FileZilla\sitemanager.xml''. &winpath
 +
 +===== OpenSSH config =====
 +
 +For [[https://man.openbsd.org/ssh_config|OpenSSH ''config'' file]], WinSCP looks to ''C:\Users\username\.ssh\config''. In the file, it  looks for all ''Host'' directives with specific hostname and imports them as sites to WinSCP.
 +
 +When resolving site settings, it considers all ''Host'' directives, even those with wildcards. The following directives are recognized: ''AddressFamily'', ''BindAddress'', ''Compression'', ''ForwardAgent'', ''GSSAPIAuthentication'', ''GSSAPIDelegateCredentials'', ''Hostname'', ''IdentityFile'', ''KbdInteractiveAuthentication'', ''Port'', ''ProxyJump'' (single jump only) and ''User''.
 +
 +When private key is found in the ''IdentityFile'' directive, WinSCP will offer you to convert the key to PuTTY format, unless a key file with the same name and ''.ppk'' extension exists already.
 +
 +&beta_feature
 +
 +===== OpenSSH known_hosts =====
For OpenSSH ''known_hosts'' files, WinSCP looks to ''C:\Users\username\.ssh\known_hosts''. &winpath You can also paste hosts key in OpenSSH format from clipboard using //Paste// button. For OpenSSH ''known_hosts'' files, WinSCP looks to ''C:\Users\username\.ssh\known_hosts''. &winpath You can also paste hosts key in OpenSSH format from clipboard using //Paste// button.

Last modified: by martin