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

Author Message
bobsmith
[View user's profile]

Joined: 2004-05-26
Posts: 2
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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
WinSCP cannot handle URL's pointing to file yet. But it is already on the wishlist Smile
_________________
Martin Prikryl
bobsmith
[View user's profile]

Joined: 2004-05-26
Posts: 2
that's great! i just voted for this feature. thanks for the great program, it's very helpful to me. bob.
Guest

Guest


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]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Mohit

Guest


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.....
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
It should be /privatekey=c:/test_linux.ppk
_________________
Martin Prikryl
Mohit

Guest


i tried this

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

again asking for password
Mohit

Guest


i tried this

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

again asking for password
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
I'm not sure if forward slashes may not cause a problem. In any case, please post a log file.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License