Dear Martin, thanks for the link. We had already read the faq and followed the instructions (or Use INI file instead of registry to store the configuration. The INI file can be accessed by all accounts.). Would you please have a look at this Logfile? (I replaced the real IP & Username)
. --------------------------------------------------------------------------
. WinSCP Version 3.7.1 (Build 257) (OS 5.2.3790 Service Pack 1)
. Login time: Freitag, 20. April 2007 13:53:29
. --------------------------------------------------------------------------
. Session name: USER@IP
. Host name: IP (Port: 2222)
. User name: USER(Password: No, Key file: Yes)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: C:\Dokumente und Einstellungen\Administrator\Eigene Dateien, Remote directory: /cp/XG302, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "IP"
. Connecting to IP port 2222
. Server version: SSH-2.0-OpenSSH_3.9p1-AuthSelect-SecurID-log
. We claim version: SSH-2.0-WinSCP-release-3.7.1
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Asking user:
. The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's key fingerprint is: ssh-rsa 1024 aa:d0:07:86:88:93:a7:98:25:87:2c:b2:83:4f:2b:71
.
. If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
.
. Continue connecting and add host key to the cache? ()
. Host key fingerprint is:
. ssh-rsa 1024 aa:d0:07:86:88:93:a7:98:25:87:2c:b2:83:4f:2b:71
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
. Initialised HMAC-SHA1 client->server MAC algorithm
. Initialised HMAC-SHA1 server->client MAC algorithm
! Using username "USER".
. Reading private key file "C:\Programme\H3GKino\SFTP\Keys\privateKey.ppk"
. Offered public key
. Offer of public key accepted
! Authenticating with public key "rsa-key-20041216"
. Access granted
. Opened channel for session
. Started a shell/command
. --------------------------------------------------------------------------
. Using SFTP protocol.
. Doing startup conversation with host.
> Type: SSH_FXP_INIT, Size: 5, Number: -1
< Type: SSH_FXP_VERSION, Size: 5, Number: -1
. SFTP version 3 negotiated.
> Type: SSH_FXP_EXTENDED, Size: 38, Number: 200
< Type: SSH_FXP_STATUS, Size: 38, Number: 200
< Status/error code: 8
. Server does not recognise WinSCP.
. Changing directory to "/cp/XG302".
. Getting real path for '/cp/XG302'
> Type: SSH_FXP_REALPATH, Size: 18, Number: 528
< Type: SSH_FXP_NAME, Size: 39, Number: 528
. Real path is '/cp/XG302'
. Trying to open directory "/cp/XG302".
> Type: SSH_FXP_OPENDIR, Size: 18, Number: 779
< Type: SSH_FXP_HANDLE, Size: 13, Number: 779
> Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
< Type: SSH_FXP_STATUS, Size: 24, Number: 1028
< Status/error code: 0
. Getting current directory name.
. Listing directory "/cp/XG302".
> Type: SSH_FXP_OPENDIR, Size: 18, Number: 1291
< Type: SSH_FXP_HANDLE, Size: 13, Number: 1291
> Type: SSH_FXP_READDIR, Size: 13, Number: 1548
< Type: SSH_FXP_NAME, Size: 433, Number: 1548
> Type: SSH_FXP_READDIR, Size: 13, Number: 1804
< Type: SSH_FXP_STATUS, Size: 28, Number: 1804
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 13, Number: 2052
< Type: SSH_FXP_STATUS, Size: 24, Number: 2052
< Status/error code: 0
. Startup conversation with host finished.
. Closing connection.
As you see above, we have stored the key in the cache. But the scheduled job still aks to save the key, as you can see from this logfile:
C:\WINDOWS\system32>cd \
C:\>cd Programme\H3GKino\SFTP
C:\Programme\H3GKino\SFTP>winscp3.com /script=C:\Programme\H3GKino\SFTP\WinSCP_Put_COPY.txt
batch on
confirm off
transfer binary
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's key fingerprint is: ssh-rsa 1024 aa:d0:07:86:88:93:a7:98:25:87:2c:b2:83:4f:2b:71
If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
Continue connecting and add host key to the cache?
(Y)es, (N)o, (C)ancel: Cancel
Authentication failed.
Host key wasn't verified!
No session.
No session.
DTSRun: Ldt...
DTSRun: Fahrt aus...
DTSRun OnStart: DTSStep_DTSCreateProcessTask_1
DTSRun OnFinish: DTSStep_DTSCreateProcessTask_1
DTSRun: Paketausführung beendet.