Tag Archives: ssh

Edit a file with vim over ssh

Next step of http://blog.ledez.net/informatique/tips/editer-un-fichier-directement-en-ftp-avec-vim/

I would like to edit /etc/init.d/squid on bozzo host:

vim scp://bozzo//etc/init.d/squid

If you try with:

vim scp://bozzo/etc/init.d/squid

vim edit the file “etc/init.d/squid” in user home directory (/root/etc/squid/squid.conf in normal root account)