I am running two linux machines, both with ssh2 installed.
ssh works fine, connected from one machine to other.
But sftp does not work properly. Once connected, any legal sftp command
gets the response: Error: operation failed.
Here is a debug session.

cbe207:~$ sftp -v cbe245
@impsonath  : _
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: host cbe245 port
debug: args[0] = ssh2
debug: args[1] = -d
debug: args[2] = 2
debug: args[3] = cbe245
debug: args[4] = -s
debug: args[5] = sftp
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: hostname is 'cbe245'.
debug: Unable to open /home/wsimpson/.ssh2/ssh2_config
Development-time debugging not compiled in. 
To enable, configure with --enable-debug and recompile.
debug: connecting to cbe245...   
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: Host key found from the database.   
debug: ssh_client_auth_pubkey_agent_open_complete agent=0x0
debug: ssh_client_auth_pubkey_agent_list_complete err 0 num 0
debug: ssh_client_auth_pubkey_send_signature
debug: ssh_client_auth_pubkey_send_signature: reading
/home/wsimpson/.ssh2/id_da_1024_a
Passphrase for key "/home/wsimpson/.ssh2/id_dsa_1024_a" with comment
"1024-bit sa, created by wsimpson@cbe207 Thu Jul 15 11:09:221999":
debug: client_authenticated
debug: Requesting X11 forwarding with authentication spoofing.
debug: Failed to get local xauth data.     
@impsonpath : _
sftp>ls
Error: operation failed.

What is wrong and how to fix?  Thanks very much for any help!

Bill Simpson

Reply via email to