This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

personally I prefer vim's netrw plugin with rsync instead of scp

Posted by: Anonymous [ip: 71.58.29.3] on July 14, 2008 03:50 PM
my normal remote-editing sessions start somewhat like this:
$ eval `ssh-agent -c`; #yes I use tcsh for a shell but I rarely write shell scripts, let alone with tcsh
Agent pid 30997
$ ssh-add
Enter passphrase for /home/meco/.ssh/id_dsa:*********
$ vim rsync://remotesite/www/test.php

And basically, any time you save your work, it's instantly committed to the remote side for preview or whatever.

Additionally, setting up host shortnames in ~/.ssh/config lets me identify each site with a shorter name, and uploading my personal sshkey into the remote site's ~/.ssh/authorizedkeys means a much shorter amount of time going back and forth with passwords -- I only need give my master-password once per session.

#

Return to Avoid latency while editing remote files using bcvi