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
    
user123456
  • 513
  • 1
  • 6
  • 18

1 Answers1

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

Alternatively:

ssh ${hostname} 'cat > destination.data' < source.data
parkamark
  • 1,118
  • 6
  • 11