direct link to files, sftp://user1@sftp.server.com/testfile.zip

Advertisement

bobsmith
Joined:
Posts:
2

direct link to files, sftp://user1@sftp.server.com/testfile.zip

hi, i know that winscp is registered to open sftp:// and scp:// links, but can it be used to directly download a file if given this url?

sftp://user1@sftp.server.com/testfile.zip

or

scp://user1@sftp.server.com/testfile.zip

i have a passwordless private key so i can login without having to supply a password. is there any way to do this? i'm modeling it after the standard ftp://ftpusr:passwd@ftp.server.com/file.zip.

right now, if i set up a web page with the link above (scp://user1@sftp.server.com/testfile.zip), it opens winscp, i get prompted for my password, and then it says it can't cd to the testfile.zip directory. i'd like it to recognize my private key, and start downloading the file immediately like a normal http download. any ideas on if this will work? thanks, bob.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: direct link to files, sftp://user1@sftp.server.com/testfile.zip

WinSCP cannot handle URL's pointing to file yet. But it is already on the wishlist :-)

Reply with quote

Guest
Guest

winscp3.exe [(scp|sftp)://][user[:password]@]host[:port][/path]/[filename]

That would be great if we can have the additional commandline and not having to interactively mget/get a file:
winscp3.exe [(scp|sftp)://][user[:password]@]host[:port][/path][filename]

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: winscp3.exe [(scp|sftp)://][user[:password]@]host[:port][/path]/[filename]

Guest wrote:

That would be great if we can have the additional commandline and not having to interactively mget/get a file:
winscp3.exe [(scp|sftp)://][user[:password]@]host[:port][/path][filename]
Scripting/automation feature is on current user poll, you may add a vote.

Reply with quote

Advertisement

Mohit
Guest

How to use Paswordless WINSCP through Command prompt

i hav private key which is working fine
with winscp GUI but i hav to do this using command prompt.
so i m trying this command

c:/downloads/winscp374.exe /console /script=c:/pritest.bat sujan@10.122.108.25 privatekey=c:/test_linux.ppk

but it still asking for pasword..
UREGNT.....

Reply with quote

Mohit
Guest

Re: direct link to files, sftp://user1@sftp.server.com/testfile.zip

i tried this

c:/downloads/winscp374.exe /console sftp://user@server /script=c:/pritest.bat /privatekey=c:/test_linux.ppk

again asking for password

Reply with quote

Mohit
Guest

Re:Re: How to use Paswordless WINSCP through Command prompt

i tried this

c:/downloads/winscp374.exe /console sftp://user@server /script=c:/pritest.bat /privatekey=c:/test_linux.ppk

again asking for password

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re:Re: How to use Paswordless WINSCP through Command prompt

I'm not sure if forward slashes may not cause a problem. In any case, please post a log file.

Reply with quote

Advertisement

You can post new topics in this forum