I can use ssh or scp to append a remote file to a local file, but I cannot figure out how to do the reverse and append a local file to a remote server.
ssh remote.server cat /path/to/file >> locale-file
Works great (but not with globbing), but how do I reverse it?
Best Answer
This will send the contents of
localfile
to thestdin
ofssh
.cat -
is then used to read this (-
meansstdin
).