Saturday, May 2, 2015

copy file with ssh without scp




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 Base64

http://www.commandlinefu.com/commands/view/4408/copy-a-file-over-ssh-without-scp


No comments: