Execute Remote Commands with SSH
Today I switched workstations. As a Vim user this means copying some local dotfiles around, appending a few here, deleting a few there. It was a good reminder that executing remote commands is part of SSH.
Here's how I've been appending old custom configurations on my old workstation, to others' already existing (shared) configurations on the new machine. The quoted command is executed on the remote machine:
$ ssh jake@oldworkstation "cat ~/.vimrc.local" >> ~/.vimrc.local
Tweet