C#: Having issues in copying files to remote Linux Server
I am having issues in copying files to remote Linux server. It throws
exception "File already exists.". Although i donot have full permission
rights but i do have a user that has full permissions. I want to use sudo
command in my code to first remove the file and then after some changes,
copy that file back to remote linux machine. Can anyone help.
Code to copy file to remote machine :
transferResult = session.PutFiles("C:\\Users\\file",
"/apps/instances/express_13000/configuration/file", false,
transferOptions);
No comments:
Post a Comment