4
1
I am trying to encrypt a file on-the-fly, redirecting the output to a named pipe [fifo]. I SSH into my server and run the command:
$ mcrypt -k key < file > named_pipe
then from my laptop I try to scp it:
$ scp me@server:~/dir/named_pipe
and it says
scp: /users/home/me/dir/named_pipe: not a regular file
Is there any way to do this? Thanks
I would assume that
scp
copies file content. A named pipe is not a physical file, hencescp
won't try to copy it (try copying/dev/random
, for example). Just redirect to a file, or find a way to tunnel the data to your laptop. – new123456 – 2011-08-02T01:28:34.473