Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Script with Keys

open <session> -hostkey="key1;key2"

See documentation
ragvi2000

Script with Keys

Hi,

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.

abc.test.com,72.99.108.125 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCf8xj864Bxp1kQnkCrRye7T2keRqIuCWvYvJ9oIZH+9nIT/9JAnchMgxpDvOYiSOwQMi3reHQyvhIHVo2pRy4BsVxKpz5PUvh+h1D7G3eZcaRjXh8805K6VGGrNlcrzyf9k09qUe+1e8IPTHLEM5wHMRy0XlKkP4oEhXvlUk4uZQ==

abc.test.com,72.99.108.125 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCZ+auK6nKO8pfLi+T4aUr0SIucHEyg7Z5839zMcYp633O9M2GRLueuK4HiuLrwuYFeOz5NoKFJr5Us7Ll5mSmHBsq2MZ21IbXB3NsdUY00OYKXBQZSWP1sM1bdnMgeqDdsA4z0arFewmB33wk/BUg7+SeHHlxDn9Sdl+jVTt+REw==

How do i add those keys to the command line?