If WinSCP could handle command line argument of the form
winscp342.exe sftp://[<userid>@]<server>[:<port>][<path>]
example:-
winscp342.exe scp://homepc/
winscp342.exe sftp://biju@homepc/home/biju/
winscp342.exe scp://biju@homepc/home/biju/
winscp342.exe scp://biju@homepc:22/home/biju/
We could register as a protocol on windows to get it started from a browser url click
Or else it may be of the type
winscp342.exe -url sftp://[<userid>@]<server>[:<port>][<path>]
like winscp342.exe -url sftp://
[email protected]/home/biju/
WinSCP should also ask username if not found
and there should be also scp://
I just checked whether winscp342 support it
And found no.
This is what we get now
winscp342.exe sftp://biju@homepc/home/biju/
from command line we get error
--------------- error message
Authentication log (see session log for details):
Using username "sftp".
Access denied
Access denied
Server sent disconnect message
type 2 (SSH_DISCONNECT_PROTOCOL_ERROR):
"Too many authentication failures for sftp"
---------------
after registering as protocol I am getting
"host not found" error from WinSCP
if I click a url of sftp:// in browser
following is my registry setting sftp protocol
I created it by copy and modify of
HKEY_CLASSES_ROOT\callto
---- my *.reg file ---
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\sftp]
@="URL: SFTP Protocol"
"URL Protocol"=""
"EditFlags"=hex:02,00,00,00
[HKEY_CLASSES_ROOT\sftp\DefaultIcon]
@="\"C:\\Install\\ssh\\winscp342.exe\",0"
[HKEY_CLASSES_ROOT\sftp\shell]
[HKEY_CLASSES_ROOT\sftp\shell\open]
[HKEY_CLASSES_ROOT\sftp\shell\open\command]
@="\"C:\\Install\\ssh\\winscp342.exe\" %1"
---- *.reg file endis ---
change C:\\Install\\ssh\\winscp342.exe
to your location