Hei .. The log files
*******************************
Looking up host "xxx.xxx.xxx.xxx"
. 2009-12-31 09:23:19.723 Connecting to xxx.xxx.xxx.xxx port 22
. 2009-12-31 09:23:19.895 Server version: SSH-2.0-http://3sp.com_Maverick_SSHD
. 2009-12-31 09:23:19.895 We claim version: SSH-2.0-WinSCP_release_4.1.8
. 2009-12-31 09:23:19.942 SSPI: acquired credentials for: xxxxxxxxxxxx@xxxx.no
. 2009-12-31 09:23:19.942 Cannot convert IP address to SPN: DNS is not trusted
. 2009-12-31 09:23:19.942 GSSKEX disabled: The operation completed successfully.
. 2009-12-31 09:23:19.942 Using SSH protocol version 2
. 2009-12-31 09:23:20.005 Using Diffie-Hellman with standard group "group14"
. 2009-12-31 09:23:20.005 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-12-31 09:23:21.567 Host key fingerprint is:
. 2009-12-31 09:23:21.567 ssh-rsa 1024 03:33:65:d0:b9:75:9c:a0:09:47:2a:c2:31:d3:58:08
. 2009-12-31 09:23:21.567 Initialised AES-256 CBC client->server encryption
. 2009-12-31 09:23:21.567 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-12-31 09:23:21.583 Initialised AES-256 CBC server->client encryption
. 2009-12-31 09:23:21.583 Initialised HMAC-SHA1 server->client MAC algorithm
. 2009-12-31 09:23:21.708 Reading private key file "W:\BBS\rsa.ppk"
! 2009-12-31 09:23:21.708 Using username "***".
. 2009-12-31 09:23:21.927 Offered public key
. 2009-12-31 09:23:22.192 Offer of public key accepted
! 2009-12-31 09:23:22.192 Authenticating with public key "rsa-key-20091218"
. 2009-12-31 09:23:22.583 Access granted
. 2009-12-31 09:23:22.693 Opened channel for session
. 2009-12-31 09:23:22.802 Server refused to start a shell/command
**********
. 2009-12-31 09:09:26.272 Using SFTP protocol.
. 2009-12-31 09:09:26.272 Doing startup conversation with host.
> 2009-12-31 09:09:26.272 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2009-12-31 09:09:26.585 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2009-12-31 09:09:26.585 SFTP version 3 negotiated.
. 2009-12-31 09:09:26.585 We believe the server has signed timestamps bug
. 2009-12-31 09:09:26.585 We will use UTF-8 strings for status messages only
. 2009-12-31 09:09:26.585 Getting current directory name.
. 2009-12-31 09:09:26.585 Getting real path for '.'
> 2009-12-31 09:09:26.585 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2009-12-31 09:09:26.694 Type: SSH_FXP_NAME, Size: 51, Number: 16
. 2009-12-31 09:09:26.694 Real path is '/'
. 2009-12-31 09:09:26.694 Listing directory "/".
> 2009-12-31 09:09:26.694 Type: SSH_FXP_OPENDIR, Size: 10, Number: 267
< 2009-12-31 09:09:26.804 Type: SSH_FXP_HANDLE, Size: 10, Number: 267
> 2009-12-31 09:09:26.804 Type: SSH_FXP_READDIR, Size: 10, Number: 524
< 2009-12-31 09:09:27.054 Type: SSH_FXP_NAME, Size: 229, Number: 524
> 2009-12-31 09:09:27.054 Type: SSH_FXP_READDIR, Size: 10, Number: 780
< 2009-12-31 09:09:27.147 Type: SSH_FXP_STATUS, Size: 45, Number: 780
< 2009-12-31 09:09:27.147 Status/error code: 1
> 2009-12-31 09:09:27.147 Type: SSH_FXP_CLOSE, Size: 10, Number: 1028
. 2009-12-31 09:09:27.147 Startup conversation with host finished.
. 2009-12-31 09:09:29.757 Cached directory change via "Inbound" to "/Inbound".
. 2009-12-31 09:09:29.757 Getting current directory name.
. 2009-12-31 09:09:29.757 Listing directory "/Inbound".
> 2009-12-31 09:09:29.757 Type: SSH_FXP_OPENDIR, Size: 17, Number: 1291
< 2009-12-31 09:09:29.757 Type: SSH_FXP_STATUS, Size: 40, Number: 1028
. 2009-12-31 09:09:29.757 Discarding reserved response
< 2009-12-31 09:09:30.038 Type: SSH_FXP_HANDLE, Size: 10, Number: 1291
> 2009-12-31 09:09:30.038 Type: SSH_FXP_READDIR, Size: 10, Number: 1548
< 2009-12-31 09:09:30.366 Type: SSH_FXP_NAME, Size: 128, Number: 1548
> 2009-12-31 09:09:30.366 Type: SSH_FXP_READDIR, Size: 10, Number: 1804
< 2009-12-31 09:09:30.476 Type: SSH_FXP_STATUS, Size: 52, Number: 1804
< 2009-12-31 09:09:30.476 Status/error code: 1
> 2009-12-31 09:09:30.476 Type: SSH_FXP_CLOSE, Size: 10, Number: 2052
. 2009-12-31 09:09:34.179 Closing connection.
. 2009-12-31 09:09:34.179 Sending special code: 12
. 2009-12-31 09:09:34.179 Sent EOF message
I have now the path for the key but I have still problem to login and upload the file to the remote WINSCP path. It works with WINSCP application...
******* The code
V:
cd %PROGRAMFILES%\WinSCP
winscp.exe /console /command "option batch on" "open scp://Username:@xx.xx.xx.xx:22 -privatekey=W:\BBS\rsa.ppk" "EXIT"
cd /inbound
put \\Remote path\Test 2009-12-31.txt
Can you help me ?
// Sokoban
Reply with quote