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"
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"