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

What is SSH?

Rishabh
3 min readJun 12, 2021

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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Rishabh
Rishabh

Written by 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.

No responses yet

Write a response