Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to login onto a remote Linux target using a local windows machine. I was using Putty and WinSCP as a GUI utilities to login. But I have a requirement which needs to automate the login procedure and transfer files/folders. As the host system runs Windows, the normal SCP command is not working for me. But GUI WinSCP.exe runs good but only after selecting SCP as protocol, as SFTP and FTP doesn't work. Now in order to automate the login, I need to use or command line for WinSCP which uses SCP. I tried using and selected SFTP as protocol, but its not working. The connection is cutoff immediately. What is the procedure/syntax to logon to the target.

share|improve this question
"... the normal SCP command is not working for me." Why not? – Ignacio Vazquez-Abrams Aug 13 '13 at 9:32
@IgnacioVazquez-Abrams: As in Windows command prompt SCP command shows as unrecognised command. – pRAShANT Aug 13 '13 at 9:40
Have you tried installing it? – Ignacio Vazquez-Abrams Aug 13 '13 at 9:41
In Windows, Naah!!! It was better to install WinSCP and use it. WinSCP itself is using SCP protocol with Putty integration (which uses PSCP, as to my knowledge). – pRAShANT Aug 13 '13 at 9:48
Clearly it is not, since it is not suitable for your purposes. – Ignacio Vazquez-Abrams Aug 13 '13 at 9:50

You must log in to answer this question.

Browse other questions tagged .