text file
cat /tmp/aaa | ssh user@host "cat - > aaa"
ssh user@host cat < /tmp/aaa ">" aaaa
from remote to local
ssh user@host cat > /tmp/bbb "<" bbb
uuencode - encode a binary file
-m Encode the output using the MIME Base64http://www.commandlinefu.com/commands/view/4408/copy-a-file-over-ssh-without-scp
No comments:
Post a Comment