SFTP with private key connection

Advertisement

Andy1877
Joined:
Posts:
1
Location:
Telford

SFTP with private key connection

Hi
We have WINSCP to connect to a clients site using a Private key, which we can connect to using the GUI, however we have an some automation software which we use to transfer files and when we use this we get this error "Failed to get the host key from sftp://111.999.666.444: getaddrinfo sftp://135.196.161.142: hostname nor servname provided, or not known"
For a previos client we used to just pass the username password and port number.
Does anyone have an example of WINSCP command Line script I could use to pass "Username", "Private Key", "IP Address" and "Port Number"
Thanks Andy

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: SFTP with private key connection

Sorry, but I do not understand your question.
How does WinSCP relate to your "automation software" (and ultimately to your question)?

Reply with quote

Guest

SFTP with private key connection

Hi

Our automaation software is similar to a workflow which runs a batch file to connect to a SFTP and transfer files. I can manualyy transfer trough the WINSCP Gui but not through the BAT file

Reply with quote

Advertisement

You can post new topics in this forum