1
1
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 WinSCP.com or command line for WinSCP which uses SCP. I tried using WinSCP.com and selected SFTP as protocol, but its not working. The connection is cutoff immediately. What is the procedure/syntax to logon to the target.
"... the normal SCP command is not working for me." Why not? – Ignacio Vazquez-Abrams – 2013-08-13T09:32:04.823
@IgnacioVazquez-Abrams: As in Windows command prompt SCP command shows as unrecognised command. – pRAShANT – 2013-08-13T09:40:28.400
Have you tried installing it? – Ignacio Vazquez-Abrams – 2013-08-13T09:41:55.290
1In 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 – 2013-08-13T09:48:11.340
Clearly it is not, since it is not suitable for your purposes. – Ignacio Vazquez-Abrams – 2013-08-13T09:50:03.280
WinSCP GUI might be using SCP service in background, It already has support to use SFTP in command line, but I wanted to use SCP feature from command line as for GUI also, it might be running in it background commands of SCP. – pRAShANT – 2013-08-13T09:55:54.490
Please share the code you have tried already and its output. – Martin Prikryl – 2013-08-13T15:32:49.550