Cat A File Over SSH

If you need to cat a file from one computer into a file on another computer, try this:

cat /etc/bash/bashrc | ssh remoteuser@remotecomputer "cat > ~/.bashrc"
This also works to append text using the “>>” operator instead