0

How to edit the file in remote server using vim editor

Instead of ssh to remote server and edit the respective file, is there any option to edit directly from my local machine to edit the file in remote machine. And i need to use vim editor.

Eg: I am having a file called example.conf in /home/test/Desktop/ in my remote machine. How to edit it from my local machine.

benjamin
asked Feb 27, 2017
1 Answer
0

Lets assume that your remote machine has IPADDR1.

# vim scp://user@IPADDR1//home/test/Desktop/example.conf

In this command SCP had used instead of SSH. It will ask for the passwd and once its done the file could be edited directly from your local machine and save it.

View More
jagannatharumugam
answered Mar 2, 2017
Your Answer
||||
x
 
100:0

Related Tutorials in How to edit the file in remote server using vim editor

Related Tutorials in How to edit the file in remote server using vim editor

Related News in How to edit the file in remote server using vim editor

Related News in How to edit the file in remote server using vim editor