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
  • 563
  • 1
  • 7
  • 20

1 Answers1

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

Alternatively:

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