I am sending a video stream over my network and I want to encrypt it with ssh. This solution below works:
on machine 1 I run
./capture | nc 192.168.1.65 5001
on machine 2 I run
netcat -l -p 5001 | mplayer -fps 30 -cache 1024 -
This gives me video.
However trying to make machine 1 listen for a connection does not work:
on machine 1 I run
./capture | netcat -l 3333 -vvv
on machine 2 I run
netcat 192.168.1.85 3333 | mplayer -fps 31 -cache 1024 –
mplayer tells me that:
MPlayer 1.2-4.2.1 (C) 2000-2015 MPlayer Team
Playing –.
File not found: '–'
Failed to open –.
No bind found for key '0       '.
Exiting... (End of file)
write(stdout): Broken pipe
Question 1: Why does it not work the other way around
Question 2: I have ssh keys set up, how do I send the video stream over ssh?
Thanks
