Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SFTP : SSH_FX_FAILURE

Status
Not open for further replies.

ettienne328

Programmer
Aug 21, 2008
1
ZA
Hi.

I am trying to do a fsetstat on a file using sftp:

fileAttributes = sftpClient.fstat(fileHandle);
fileAttributes.permissions = new Integer(00777);
sftpClient.fsetstat(fileHandle, fileAttributes);

The files permission gets changed as requested on the server but an exception gets thrown, I can’t figure out why the exception is thrown :SSH_FX_FAILURE: An error occurred, but no specific error code exists to describe the failure.

I am able to do createFile which indicates that my connection and file handle is working...
Also the file gets created by the process and therefor I have all the neccesary permission to make changes to the file.

Thanks
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top