Live Streaming Video Chat App using cv2 module of Python..

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
>>while True:
>>>ret, photo=cap.read()
>>>cv2.imshow(“me”,photo)
>>>if cv2..waitKey(10)==13:
>>>>break
>>cv2.destroyAllWindows()

Step-2: Running the both program using SSH as we need to access each others camera.

>>ssh -X root@192.168.43.243 python3 camera.py

Finally:

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:
https://github.com/Rishbah-76/ssh_video_program

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rishabh

Rishabh

Student from B.tech 2nd Year, A proud ARTH learner, love new technologies, Curious about many thing, likes to explore places, love eating pizza and much more.