Friday, August 1, 2008

Edit a remote file using vi and scp - linux


unstableme.log is a file on server 172.21.20.104 /root directory. In order to edit this file from your local system the command is:

$ vim scp://root@172.21.20.104//root/unstableme.log

** This requires key based ssh access to the remote server 172.21.20.104.

For more details on editing remote files via scp in vim read the vim tip from vim.org

3 comments:

bayois said...

Very very simple and useful! Thanks!

bayois said...

Very useful and simple! Thanks guy

Unknown said...

@aLe, thanks for your comment. Keep visiting unstableme.

© Jadu Saikia www.UNIXCL.com