Linux – How to copy a file without using scp inside an ssh session

linuxscpsshunix

I have logged on to a system with ssh and there is no scp present on both the systems. How to copy a file without using the scp program.

Best Answer

To send a file:

cat file | ssh ajw@dogmatix "cat > remote"

Or:

ssh ajw@dogmatix "cat > remote" < file

To receive a file:

ssh ajw@dogmatix "cat remote" > copy
Related Question