I need to edit the remote file. Right now, I'm logging into the machine via SSH. I can execute commands and get back response etc.
I am facing difficulty to modify the remote file.
Source Machine : Windows
Destination : Linux
Is anything like, get the file to Windows machine and edit it and then again transfer the file to Linux ? or any other better way ?
import SSHLibrary
s = SSHLibrary.SSHLibrary()
s.open_connection("10.10.10.10",username, password)
#s.write("sudo vi file_name_along_with_path") it has to force edit the file
# any ftp mechanism would be better
Can you please help me ?