1

Given a named pipe, how can I send a continuous stream of this pipe through ssh?

The netcat equivalent of what I am looking for is

  • from client

    dd if=myfifo | nc -l 12345
    
  • from server

    nc <client IP> 12345 > stream
    
1
  • Can you explain what the two lines are doing? – Francesco Boi Nov 15 '18 at 9:32
4
cat source.data | ssh ${hostname} 'cat > destination.data'

Alternatively:

ssh ${hostname} 'cat > destination.data' < source.data

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.