Differences

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

commandline 2025-01-13 commandline 2026-03-10 (current)
Line 9: Line 9:
winscp.exe [mysession] [/newinstance] winscp.exe [mysession] [/newinstance]
winscp.exe [mysession] /edit <path> winscp.exe [mysession] /edit <path>
-winscp.exe [mysession] /browse[=<file>]+winscp.exe [mysession] /explore[=<file>]
winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults[=secs]] winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults[=secs]]
winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults[=secs]] winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults[=secs]]
Line 33: Line 33:
winscp.exe /keygen keyfile [/output=<file>] [/changepassphrase] winscp.exe /keygen keyfile [/output=<file>] [/changepassphrase]
winscp.exe /keygen keyfile [/comment=<text>] [/certificate=<file>] winscp.exe /keygen keyfile [/comment=<text>] [/certificate=<file>]
 +winscp.exe /copyid /identity=publickey mysession
winscp.exe /update winscp.exe /update
winscp.exe /info winscp.exe /info
Line 50: Line 51:
winscp.com /keygen keyfile [/output=<file>] [/changepassphrase] winscp.com /keygen keyfile [/output=<file>] [/changepassphrase]
winscp.com /keygen keyfile [/comment=<text>] [/certificate=<file>] winscp.com /keygen keyfile [/comment=<text>] [/certificate=<file>]
 +winscp.exe /copyid /identity=publickey mysession
winscp.com /info winscp.com /info
winscp.com /help winscp.com /help
Line 141: Line 143:
Use ''/==edit=='' to open a remote file in WinSCP [[ui_editor|internal editor]]. Use ''/==edit=='' to open a remote file in WinSCP [[ui_editor|internal editor]].
-Use ''/browse'' to select the specified file in (both) [[ui_file_panel|file panel(s)]]. The switch can also be used together with a [[session_url#file|file URL]] for the same effect, overriding the default [[task_download#url|download action]].+Use ''/explore'' (''/browse'' in older versions) &beta to select the specified file in (both) [[ui_file_panel|file panel(s)]]. The switch can also be used together with a [[session_url#file|file URL]] for the same effect, overriding the default [[task_download#url|download action]].
With ''/==synchronize=='' or ''/keepuptodate'' parameter WinSCP performs //Synchronize// or //Keep remote directory up to date// commands respectively on the specified session and directories. A dialog to set options is displayed first. With ''/==synchronize=='' or ''/keepuptodate'' parameter WinSCP performs //Synchronize// or //Keep remote directory up to date// commands respectively on the specified session and directories. A dialog to set options is displayed first.
Line 211: Line 213:
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>
 +
 +==== [[copyid]] Public key installation ====
 +
 +Use the ''/copyid'' switch to [[guide_public_key#configure_openssh|install your public key in a server's ''authorized_keys'' file]]. Use ''/identity'' switch to specify the path to your key pair in PPK format or public key in ''authorized_keys'' format. Supported with SFTP protocol only.
 +
 +For example, to install public key from ''mykey.ppk'' key pair file, use:
 +
 +<code batch>
 +winscp.com /copyid /identity=mykey.ppk martin@example.com
 +</code>
 +
 +The functionality is a replacement for [[&man_ref(1,ssh-copy-id)|OpenSSH ''ssh-copy-id'' script]]. Contrary to the OpenSSH script, it does not require shell interpreter locally. Additionally, it uses SFTP protocol, so it does not rely on a shell access and shell commands on the server. For a compatibility with the script, the ''-i'' switch is understood as an alias to ''/identity''. So, for features supported by WinSCP, you can use the same arguments as for ''ssh-copy-id'', just prefixed with ''/copyid''.
==== [[auxiliary]] Auxiliary ==== ==== [[auxiliary]] Auxiliary ====

Last modified: by martin