4 ms·
On your laptop, in ~/.ssh/config: Host * PermitLocalCommand yes LocalCommand rsync -azL --checksum -e "ssh -p %p -o PermitLocalCommand=no"
by fragmede 3mo ago
On your laptop, in ~/.ssh/config:
Host *
PermitLocalCommand yes
LocalCommand rsync -azL --checksum -e "ssh -p %p -o PermitLocalCommand=no" "$HOME/.vimrc" "%r@%h:.vimrc"
This copies your ~/.vimrc if unmodified to every server you ssh to.
(For bonus points, you can make a program to copy ~/.ssh/config around as well so that your config gets copied to servers you ssh to from there.)