Live Streaming Video Chat App using cv2 module of Python..
What is SSH?
SSH, also known as Secure Shell or Secure Socket Shell, is a network protocol that gives users, particularly system administrators, a secure way to access a computer over an unsecured network. In addition to providing secure network services, SSH refers to the suite of utilities that implement the SSH protocol. Secure Shell provides strong password authentication and public key authentication, as well as encrypted data communications between two computers connecting over an open network, such as the internet
How SSH Works?
Secure Shell was created to replace insecure terminal emulation or login programs, such as Telnet, rlogin (remote login) and rsh (remote shell); SSH enables the same functions (logging in to and running terminal sessions on remote systems). SSH also replaces file transfer programs, such as File Transfer Protocol (FTP) and rcp (remote copy)
SSH Supports many options?
What is X11 forwarding?
SSH supports tunneling of X11 (X-Windows). This is also very useful if you want to open graphical displays from the remote machine on your local computer. To achieve this, an X11 server must be running on your local machine. The X11 connections are then tunneled and automatically encrypted by your SSH client.
Now let’s Directly jump to out Task…
Step-1: Creating a Code name camrea.py in both the system..
>> import cv2
>>cap=cv2.VideoCapture(0) # To enable the camera
Step-2: Running the both program using SSH as we need to access each others camera.
>>ssh -X firstname.lastname@example.org python3 camera.py
Now, we can see that the two systems have achieved video chat functionality with no audio.
Thank you, for reading this blog, This was done with my team and would like to thank one of my team mate “Shivansh Srivastava” for helping me in learning and implementing the concepts..
This is the source code for the above task: