Topic "Script with Keys"

Author Message
[View user's profile]

Joined: 2009-09-30
Posts: 1
Location: NJ

I am using Version 4.2.3 (Build 494). I am using a batch file (syntax is given below) to run the program.
"C:\Program Files\WinSCP\winscp.exe" /console /script="C:\script.txt"

My Client sFTP Server is on a clustered environment and generates two keys., ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCf8xj864Bxp1kQnkCrRye7T2keRqIuCWvYvJ9oIZH+9nIT/9JAnchMgxpDvOYiSOwQMi3reHQyvhIHVo2pRy4BsVxKpz5PUvh+h1D7G3eZcaRjXh8805K6VGGrNlcrzyf9k09qUe+1e8IPTHLEM5wHMRy0XlKkP4oEhXvlUk4uZQ==, ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCZ+auK6nKO8pfLi+T4aUr0SIucHEyg7Z5839zMcYp633O9M2GRLueuK4HiuLrwuYFeOz5NoKFJr5Us7Ll5mSmHBsq2MZ21IbXB3NsdUY00OYKXBQZSWP1sM1bdnMgeqDdsA4z0arFewmB33wk/BUg7+SeHHlxDn9Sdl+jVTt+REw==

How do i add those keys to the command line?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
open <session> -hostkey="key1;key2"

See documentation
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License