Command line open compared to exe session usage
I am using winscp: 4.1.9 on Windows XP.
I created a session which works fine, I receive a error command 'groups' failed with return code 1 and error message -bsh: groups: not found. I press OK.
Then the session opens.
I can transfer files using SFTP.
The SFTP server is an AS400 v 5.3.
The winscp.com version will not connect. I created a script file and execute by: winscp.com /script:=winscpscr.txt /log=winscplog.txt
I received the error: connection has been unexpectedly closed. Server sent command exit status 1.
my script file:
open sftp://sftpusr2:sftpuser@192.168.1.6:22
option transfer binary
option confirm off
lcd c:\dictfldr\
cd /home/sftpuser
put -delete *.*
exit
the log file:
WinSCP Version 4.1.9 (Build 416) (OS 5.1.2600 Service Pack 3)
Login time: Monday, June 15, 2009 2:48:02 PM
--------------------------------------------------------------------------
Session name: sftpusr2@192.168.1.6
Host name: 192.168.1.6 (Port: 22)
User name: sftpusr2 (Password: Yes, Key file: No)
Tunnel: No
Transfer Protocol: SFTP
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
SSH protocol version: 2; Compression: No
Bypass authentication: No
Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
SSH Bugs: -,-,-,-,-,-,-,-
SFTP Bugs: -,-
Return code variable: Autodetect; Lookup user groups: Yes
Shell: default, EOL: 0
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1
--------------------------------------------------------------------------
Looking up host "192.168.1.6"
Connecting to 192.168.1.6 port 22
Server version: SSH-1.5-OpenSSH_3.5p1
We claim version: SSH-1.5-WinSCP_release_4.1.9
Using SSH protocol version 1
Received public keys
Host key fingerprint is:
2048 e8:c4:5e:75:8f:cc:69:02:40:b3:94:e1:b9:db:4b:3d
Encrypted session key
AES not supported in SSH-1, skipping
Using Blowfish encryption
Trying to enable encryption...
Initialised Blowfish-128 CBC encryption
Installing CRC compensation attack detector
Successfully started encryption
Sent username "sftpusr2"
Prompt (6, SSH password, , &Password: )
Using stored password.
Sending password with camouflage packets
Sent password
Authentication successful
Started session
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
! bsh: sftp-server: not found
Server sent command exit status 1
Disconnected
I created a session which works fine, I receive a error command 'groups' failed with return code 1 and error message -bsh: groups: not found. I press OK.
Then the session opens.
I can transfer files using SFTP.
The SFTP server is an AS400 v 5.3.
The winscp.com version will not connect. I created a script file and execute by: winscp.com /script:=winscpscr.txt /log=winscplog.txt
I received the error: connection has been unexpectedly closed. Server sent command exit status 1.
my script file:
open sftp://sftpusr2:sftpuser@192.168.1.6:22
option transfer binary
option confirm off
lcd c:\dictfldr\
cd /home/sftpuser
put -delete *.*
exit
the log file:
WinSCP Version 4.1.9 (Build 416) (OS 5.1.2600 Service Pack 3)
Login time: Monday, June 15, 2009 2:48:02 PM
--------------------------------------------------------------------------
Session name: sftpusr2@192.168.1.6
Host name: 192.168.1.6 (Port: 22)
User name: sftpusr2 (Password: Yes, Key file: No)
Tunnel: No
Transfer Protocol: SFTP
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
SSH protocol version: 2; Compression: No
Bypass authentication: No
Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
SSH Bugs: -,-,-,-,-,-,-,-
SFTP Bugs: -,-
Return code variable: Autodetect; Lookup user groups: Yes
Shell: default, EOL: 0
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1
--------------------------------------------------------------------------
Looking up host "192.168.1.6"
Connecting to 192.168.1.6 port 22
Server version: SSH-1.5-OpenSSH_3.5p1
We claim version: SSH-1.5-WinSCP_release_4.1.9
Using SSH protocol version 1
Received public keys
Host key fingerprint is:
2048 e8:c4:5e:75:8f:cc:69:02:40:b3:94:e1:b9:db:4b:3d
Encrypted session key
AES not supported in SSH-1, skipping
Using Blowfish encryption
Trying to enable encryption...
Initialised Blowfish-128 CBC encryption
Installing CRC compensation attack detector
Successfully started encryption
Sent username "sftpusr2"
Prompt (6, SSH password, , &Password: )
Using stored password.
Sending password with camouflage packets
Sent password
Authentication successful
Started session
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
! bsh: sftp-server: not found
Server sent command exit status 1
Disconnected