I nned to move file(exist on Unix sevrer) from one folder to another using asp.net,C#
. I am using the following method to move the file form one location to another
_sftpClient.CopyRemoteFile(source, destination, false);
But it is giving error : "Operation not supported"
How could I achieve my funcnality

If the remote server doesn't support this function, there's nothing you can do using SFTP. One thing you can try is to allow SFTP versions 4, 5, 6 (using Versions property of the component) but this is unlikely to help if the limitation is of the server.

You can connect using SSH (command channel) and issue a command "mv <old name> <new name>".

*Maybe* you can do this via SSH, but this is very platform-specific, as you would need to install some custom application on the remote server which will do the check for you. SFTP obviously doesn't offer such functions.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.