Topic "Scripting with error by connect"

Author Message
GerdRez
[View user's profile]

Joined: 2008-06-05
Posts: 1
Location: Germany
Hi together,

i will synchronize vom the local pc (windows) to a ftp server (linux) with shedule tasks every 60 min.
I tried to realize with winscp scripting.
The connect and the filetransfer are working fine wiht gui but tranfering with the script, i get no connect.
In the GUI transfer we dont use a key

The script:
*******************
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect
open member@192.168.10.10
# Change remote directory
# Force binary mode transfer
option transfer binary
# Download file to the local directory
# get archives/* f:\backups\archives\*
# Delete downloaded files
# rm archives/*
# sync from remote to local
put c:\transfer\ftp\*.* /
# Exit WinSCP
exit
***************************

And the log:
***************************
Looking up host "192.168.10.10"
Connecting to 192.168.10.10 port 22
Waiting for the server to continue with the initialisation
Detected network event
Detected network event
Server version: SSH-2.0-OpenSSH_3.7.1p2
We claim version: SSH-2.0-WinSCP_release_4.0.7
Using SSH protocol version 2
Waiting for the server to continue with the initialisation
Detected network event
Doing Diffie-Hellman group exchange
Waiting for the server to continue with the initialisation
Detected network event
Doing Diffie-Hellman key exchange
Waiting for the server to continue with the initialisation
Detected network event
Asking user:
Der Rechnerschlssel des Servers wurde nicht im Speicher gefunden. Es gibt keine Garantie, das der Server wirklich der Rechner ist, mit dem Sie sich verbinden wollten. Der rsa2 Schlssel-Fingerabdruck des Servers lautet: ssh-rsa 1024 e9:a0:02:1a:e2:43:fa:e2:72:06:23:8e:fd:6f:e7:a9
Wenn Sie diesem Rechner trauen, drcken Sie Ja. Um fortzufahren, ohne den Rechnerschlssel im Speicher abzulegen, drcken Sie Nein. Um die Verbindung abzubrechen, drcken Sie Abbrechen.
Soll die Verbindung fortgesetzt und der Rechnerschlssel im Speicher abgelegt werden? ()
Attempt to close connection due to fatal exception:
Rechner-Schlssel wurde nicht berprft!
Closing connection.
***************************

greetz
Gerd
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please read FAQ. If that does not help, come back.
_________________
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