Topic "Using Private/Public Key Pair from a Script"

Author Message
stonkers
[View user's profile]

Joined: 2006-06-13
Posts: 2
Location: Denver, CO
Sorry if this is a newb question, that's what I am. I've been browsing the doc but can't find how to completely automate the copy of a file using a private/public key pair rather than password. Using the GUI, I am able to start a session and transfer files. With a script, however, I can't figure out how to tell it the passphrase without user interaction. Can someone give me a pointer to the correct location in the doc to find this info? Thanks MUCH in advance!
_________________
Eric
stonkers
[View user's profile]

Joined: 2006-06-13
Posts: 2
Location: Denver, CO
I did a bit more searching and found a statment saying that I had to either:

1) Create my private key without a passphrase (seems kind of dangerous)

or

2) Save a session on the client to use using password (passphrase will be prompted if I don't use the password (again seems dangerous)

If there is another way, please let me know. Thanks!
_________________
Eric
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Well, automation is dangerous Smile It's your choice.
_________________
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