Re: Automate script without check on fingerprint
@Saker1: That's what the
-hostkey=*
is for, as shown above.
-hostkey=*
is for, as shown above.
-hostkey
switch?
WinSCP.com /command "option transfer ascii" "open sftp://USER@10.10.10.10/ -hostkey=*" ...
"option batch abort" "option confirm off"
are not needed anymore in the recent versions of WinSCP).
"open sftp://USER@10.10.10.10/ -hostkey=""ssh-dss 1024 key1;ssh-dss 1024 key2;ssh-dss 1024 key3"""
cd C:\
cd program files (x86)
cd WinSCP
WinSCP.com /command "option batch abort" "option confirm off" "option transfer ascii" "open sftp://USER@10.10.10.10" "get -delete /PATH/*.lst D:\PATH\" "exit" /privatekey=D:\keyfile.ppk
/log=path_to_log_file
command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private."/hostkey="*"
& -hostkey="*"
and it doesn't work.