This is an old revision of the document!

Remote/Custom Commands

WinSCP offers unique feature to execute command on remote server as with regular SSH terminal client. However as it does not implement the terminal fully, you can execute only commands that does not require user input.

Basically the feature is supported only for SCP protocol. With SFTP you can still use the feature by opening separate shell session, which in fact takes place automatically for you.

Advertisement

How to Enter the Remote Command

You can enter the command on Console window (Commands > Open Terminal).

If you are using Norton Commander interface you can also enter the command on command-line box below the panels.

Custom Commands

If there is command you need to execute regularly and in particular if the command works with files, you can find Custom commands useful.

The Custom command is predefined command, which can contain several patterns, which WinSCP replaces for example with names of files selected in panel. For example pre-defined custom command Touch, defined as touch “!”, calls touch command on every selected file in remote panel.

Custom commands are located in menu File(s) > Custom Commands and also in file context menu. Custom commands can be configured in Preferences.

Last modified: by martin