This is an old revision of the document!

Remote Commands

WinSCP offers unique feature to execute command on remote server as with regular terminal client. However as it cannot implement the terminal fully, there are some limitations. Particularly, you cannot execute commands that require terminal emulation or user input. See below for technical details.

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. With FTP you can only execute FTP protocol commands. However some FTP servers have a command allowing execution of remote command, e.g. site exec <command>.

Advertisement

How to Enter the Remote Command

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

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

If you want to have full featured terminal, you may find command Open In PuTTY useful.

Automating Command Execution

To automate remote command execution use scripting command call or .NET assembly method Session.ExecuteCommand.

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.

ssh root@192.168.0.17

Last modified: by 76.172.189.96