Topic "Accepts 'Any' SSH Hostkey"

Author Message
gorio
[View user's profile]

Joined: 2013-06-05
Posts: 1
Hello Guys,

I have a problem every time that i try to run a script, i get the following message

https://winscp.net/eng/docs/message_security_breach

I'd like to accept it automatically. Like press key U to (U)pdate

How to do it in command line script ?

Thank you
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
In the latest beta version you can use -hostkey=* switch of open command.

You are giving up any security by doing this though. Make sure you understand the implications.
_________________
Martin Prikryl
Ramesh

Guest


Hi

I use this command line to transfer files

Requirement is tranfer single file from windows to multiple AIX boxes :

c:\winscp429\winscp.com /command "option confirm off" "open sftp://username:password@boxname -hostkey=*" "put c:\t1.txt /tmp/t3.txt" "close" "exit"

it works, but askes for hostkey addition to cache everytime, can u help pls, am struggleing and it is already 4 hrs i spent on this.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
The * is supported since WinSCP 5.2.x beta only:
https://winscp.net/tracker/show_bug.cgi?id=815
_________________
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