Differences

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

2023-03-01 2023-03-01
conversion and changes can be combined (martin) 6.0 Bug 1873: Support for OpenSSH certificates for user authentication (martin)
Line 31: Line 31:
winscp.exe [/rawtransfersettings setting1=value1 setting2=value2 ...] winscp.exe [/rawtransfersettings setting1=value1 setting2=value2 ...]
winscp.exe /batchsettings <site_mask> setting1=value1 setting2=value2 ... winscp.exe /batchsettings <site_mask> setting1=value1 setting2=value2 ...
-winscp.exe /keygen keyfile [/output=<file>] [/changepassphrase] [/comment=<text>]+winscp.exe /keygen keyfile [/output=<file>] [/changepassphrase] 
 +winscp.exe /keygen keyfile [/comment=<text>] [/certificate=<file>]
winscp.exe /update winscp.exe /update
winscp.exe /info winscp.exe /info
Line 47: Line 48:
winscp.com [/rawconfig config1=value1 config2=value2 ...] winscp.com [/rawconfig config1=value1 config2=value2 ...]
winscp.com /batchsettings <site_mask> setting1=value1 setting2=value2 ... winscp.com /batchsettings <site_mask> setting1=value1 setting2=value2 ...
-winscp.com /keygen keyfile [/output=<file>] [/changepassphrase] [/comment=<text>]+winscp.com /keygen keyfile [/output=<file>] [/changepassphrase] 
 +winscp.com /keygen keyfile [/comment=<text>] [/certificate=<file>]
winscp.com /info winscp.com /info
winscp.com /help winscp.com /help
Line 180: Line 182:
==== [[keygen]] Private key conversion and modification ==== ==== [[keygen]] Private key conversion and modification ====
-Use the ''/keygen'' switch to convert [[public_key#private|private keys]] from other formats to a PuTTY ''.ppk'' format or to change their passphrase or comment. You can combine a conversion and key changes into one command.+Use the ''/keygen'' switch to convert [[public_key#private|private keys]] from other formats to a PuTTY ''.ppk'' format or to change their passphrase or comment or to add a certificate. You can combine a conversion and key changes into one command.
-A parameter after the ''/keygen'' switch specifies a path to an input private key file. The input key can be in OpenSSH or ssh.com format (when converting the key to the PuTTY format) or in the PuTTY format (when changing a key passphrase or comment).+A parameter after the ''/keygen'' switch specifies a path to an input private key file. The input key can be in OpenSSH or ssh.com format (when converting the key to the PuTTY format) or in the PuTTY format (when modifying the key).
When converting the key from other format, you need to specify an output key path using the ''/output'' switch. When modifying a PuTTY key, the existing file is overwritten, if ''/output'' is not specified. When converting the key from other format, you need to specify an output key path using the ''/output'' switch. When modifying a PuTTY key, the existing file is overwritten, if ''/output'' is not specified.
Line 189: Line 191:
Use ''/comment'' switch to change the key comment. Use ''/comment'' switch to change the key comment.
 +
 +Use ''/certificate'' switch to add an certificate to the key. &beta_feature
For example, to convert key ''mykey.pem'' from OpenSSH format to ''mykey.ppk'' in PuTTY format and set its comment: For example, to convert key ''mykey.pem'' from OpenSSH format to ''mykey.ppk'' in PuTTY format and set its comment:
Line 202: Line 206:
</code> </code>
-For a compatibility with *nix ''[[&man_ref(1,puttygen)|puttygen]]'', the ''-o'', ''-P'' and ''-C'' switches are understood as aliases to ''/output'', ''/changepassphrase'' and ''/comment'' respectively. So, for features supported by WinSCP, you can use the same arguments as for ''puttygen'', just prefixed with ''/keygen'':+For a compatibility with *nix ''[[&man_ref(1,puttygen)|puttygen]]'', the ''-o'', ''-P'', ''-C'' and ''%%--certificate%%'' switches are understood as aliases to ''/output'', ''/changepassphrase'', ''/comment'' and ''/certificate'' respectively. So, for features supported by WinSCP, you can use the same arguments as for ''puttygen'', just prefixed with ''/keygen'':
<code batch> <code batch>
winscp.com /keygen mykey.pem -o mykey.ppk -C "Converted from OpenSSH format" winscp.com /keygen mykey.pem -o mykey.ppk -C "Converted from OpenSSH format"
</code> </code>
- 
==== [[auxiliary]] Auxiliary ==== ==== [[auxiliary]] Auxiliary ====

Last modified: by martin