School Of Basics | What is SSH | How SSH works

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024
  • more about Raghav - automationstep...
    Story of SSH - automationstep...
    You can support my mission for education by joining this channel as member - www.youtube.co...
    Hi, I am Raghav and today we will learn -
    What is SSH
    How SSH Works
    Why SSH was created
    SSH Client
    SSH Server
    SSH Authentication
    Public & Private Keys
    Hit Like and. Subscribe button, if you like this video. It gives me great motivation.
    You can support my mission for education by sharing this knowledge and helping as many people as you can
    If my work has helped you, consider helping any animal near you, in any way you can.
    Other topics in School of Basics
    How Appium works - • School Of Basics | How...
    How Selenium works - • | School Of Basics | S...
    What is API - • School Of Basics | Wha...
    How API works - • School Of Basics | API...

Комментарии • 239

  • @michaelrider9067
    @michaelrider9067 2 года назад +19

    Today was my first day on the job as a junior dev(just transitioned careers ), and SSH kicked my butt while I was trying to set up my dev environment. I've spent my afternoon after work watching videos and researching SSH. This is easily the best video on SSH. Thank you for sharing this information with the community.

    • @RaghavPal
      @RaghavPal  2 года назад

      So happy to know it

    • @anakie9660
      @anakie9660 2 года назад

      true this one helped me a lot

  • @svetanayanr8930
    @svetanayanr8930 4 года назад +46

    It is like.. I have a doubt.. i come to your channel with 0 knowledge.. search the keyword.. get it here.. and i definetely go back with a good content.. You are actually creating livelihoods for people with your knowledge.. (PS: and then i show off my knowledge :D ha ha) Thanks a lot.. please continue educating us..!!

    • @RaghavPal
      @RaghavPal  4 года назад +7

      So humbled to read your message Sveta

  • @AbdulRehman-pc2xx
    @AbdulRehman-pc2xx 3 года назад +3

    From Lahore Pakistan. ALLAH bless you, Ameen. You explained this SSH in a very super duper easy way. And Yes Sir please stay home and stay safe. MAY ALLAH take India out from this hell situation Ameen.

  • @PrabasView
    @PrabasView 4 года назад +9

    The Day begins with your video about SSH. It was awesome and clear explanation with example. Thanks Raghav.

  • @JPH-ps6ic
    @JPH-ps6ic 5 месяцев назад +2

    Raghav - thank you for this video. It is super helpful to me. But I have one question about the two key process.
    At 9:51 in the video, this makes sense, but I recently saw a different video describing it in this way ->
    Step 1: Client sends connection request to Server.
    Step 2: Server sends Client a random string that is encrypted using the Public Key
    Step 3: Client DECRYPTS this random string using the Private Key, and sends back information to the Server that proves that it indeed decrypted it.
    Step 4: Server authenticates this information.
    As you can tell, this process that I described is similar, but the client does the decrypting. In your video, Step 3 shows the client ENCRYPTING the message for the SERVER to decrypt.
    I wanted to ask you if both processes are viable, and if they have different names, or if one of these processes is incorrect. Trying to sort this stuff out while learning about SSH and any input would be greatly appreciated!

    • @RaghavPal
      @RaghavPal  5 месяцев назад +2

      JP
      Let's delve into the intricacies of SSH key-based authentication. It's great that you're exploring this topic, and I'll clarify the processes for you.
      1. SSH Key Pair Generation:
      - Client: The client generates an SSH key pair consisting of a public key and a private key.
      - Public Key: The public key is shared with the server.
      - Private Key: The private key remains securely on the client machine.
      2. Server Configuration:
      - The server stores the client's public key in a special file (usually `~/.ssh/authorized_keys`).
      - The server marks the public key as approved for authentication.
      3. Authentication Process:
      - When the client connects to the server:
      - The server sends a random string to the client.
      - The client encrypts this random string using its private key.
      - The client sends the encrypted string back to the server.
      - The server decrypts the received string using the public key.
      - If successful, the server authenticates the client.
      Now, let's address the difference you noticed:
      - Your Description:
      - The client decrypts the random string using its private key.
      - The client then sends back information to the server.
      - The server authenticates based on this information.
      - Video Description (as per your observation):
      - The client encrypts the random string using its private key.
      - The server decrypts the received string using the client's public key.
      - If successful, the server authenticates the client.
      Both processes are viable and achieve the same goal: secure authentication using SSH keys. The video's approach emphasizes the client's role in encrypting the message, while your description highlights the client's role in decrypting it. These are two sides of the same cryptographic coin
      In summary, both methods are correct, and they don't have different names. The key pair ensures secure communication, and the specific steps may vary slightly in how they're described
      Keep exploring, and feel free to ask more questions as you learn..

  • @scottrussell6873
    @scottrussell6873 3 года назад +2

    Thank you! I finally understand how public/private key encryption works!

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad it helped Scott

  • @dayanandswami8109
    @dayanandswami8109 10 месяцев назад +1

    really, this box example now clear the funda of ssh that how it is secure & how it works. Thanks for making this valuable video.

    • @RaghavPal
      @RaghavPal  10 месяцев назад

      Glad it helped Dayanand

  • @hariprasath838
    @hariprasath838 3 года назад +9

    Thank you so much sir. I heard this term yesterday. And I can say now, that I know that how SSH is working in basic level.
    I loved the way you had explained using transferring locked box between two friends.
    Thank you so much sir:)

  • @arun53413
    @arun53413 4 года назад +7

    Hi Raghav,
    It was a good Explanation.
    You are doing a Great Job of sharing your knowledge which is helping many of us.
    Keep up the Good Work !!

  • @nandhinirajendran1396
    @nandhinirajendran1396 4 года назад +5

    You are my guru for years 🙏🏼🙏🏼🙏🏼🙏🏼

    • @RaghavPal
      @RaghavPal  4 года назад

      Humbled to know this Nandhini

  • @RachitMalvi
    @RachitMalvi 3 года назад +3

    Thank you, Raghav. Great expalination!

  • @sundarmishra561
    @sundarmishra561 3 года назад +1

    Thank you for providing this great resource.
    Very grateful to you.🤝👏👏

  • @rageshnc
    @rageshnc 3 года назад +1

    Thank you for the short but clear explanation....

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad it was helpful Ragesh

  • @jimmelbermudez
    @jimmelbermudez 2 года назад

    Thank you very much Sir . Your student from Philippines ☺️

    • @RaghavPal
      @RaghavPal  2 года назад

      You are very welcome Jimmel

  • @mahimahesh5616
    @mahimahesh5616 4 года назад +2

    It would be helpful if u make videos to clear interviews explaining real time scenerios

  • @rajeeshnangariyil3600
    @rajeeshnangariyil3600 3 года назад

    These information are gold dust

  • @codenexa1666
    @codenexa1666 Год назад

    It is simply an amazing overview, On point explanation. Thanks for sharing amazing information.
    Keep uploading this kind of informative videos for us.

  • @luckyadeloye3452
    @luckyadeloye3452 2 года назад

    Thank you so much for this video and the link to the conversation between mickey and minnie on ssh.

  • @JohnJohnson-sf5wl
    @JohnJohnson-sf5wl 2 года назад

    Thanks for the simple explanations

  • @seydangulyesil
    @seydangulyesil 6 месяцев назад

    it's absolutely great explain 👏👏👏

    • @RaghavPal
      @RaghavPal  6 месяцев назад

      Glad it was helpful!

  • @immanueln3900
    @immanueln3900 15 дней назад

    Hello, Good Morning, it was a superb content you have provided. So do we have any video related to openSSH? please do send. Thank you!

    • @RaghavPal
      @RaghavPal  15 дней назад

      not specific to open ssh.. can also read this story - automationstepbystep.com/2020/07/23/a-story-of-ssh-secure-shell/

  • @wmchow8943
    @wmchow8943 Год назад

    Very well explained and used Git as example make it more easy to understand

  • @rogerthat7190
    @rogerthat7190 2 года назад

    Thank you sir for the clear explanation

  • @ayushpatel2171
    @ayushpatel2171 3 года назад +1

    Nice explanation sir thank you very much.

    • @RaghavPal
      @RaghavPal  3 года назад

      You are most welcome Ayush

  • @avakasavaadhi4726
    @avakasavaadhi4726 2 года назад +1

    May I know which port is used when 2 machines communicate over SSH?

    • @RaghavPal
      @RaghavPal  2 года назад +1

      default is port 22, but this can change

  • @madhavans8442
    @madhavans8442 3 года назад

    please continue educating us.Thanks!

    • @RaghavPal
      @RaghavPal  3 года назад

      Most welcome Madhavan

  • @niyazshkl9584
    @niyazshkl9584 24 дня назад

    Great explanation!

    • @RaghavPal
      @RaghavPal  23 дня назад

      Glad it was helpful Niyaz

  • @yavdhesh
    @yavdhesh 3 года назад

    dhanywaada guruji

  • @poojagupta-nk7rq
    @poojagupta-nk7rq 4 года назад

    sir you are simply best i am working past 1 year but today i understood exact scene thankyou my teacher

    • @RaghavPal
      @RaghavPal  4 года назад

      You are most welcome Pooja

  • @sandeep87raju
    @sandeep87raju 4 года назад +1

    Such a wonderful explanation Raghav. You are a great guy :)..

    • @RaghavPal
      @RaghavPal  4 года назад

      Thanks for watching Sandeep

  • @bandlamudi1206
    @bandlamudi1206 3 года назад

    Really a nice video, I did watch few videos so far, did not get clear idea about ssh process. The way you presented the topic is awesome. Thank you Raghav

    • @RaghavPal
      @RaghavPal  3 года назад

      You are most welcome

  • @kommuram5435
    @kommuram5435 4 года назад +1

    Hi Raghav, thanks for the valuable info. Can you please explain how ssl works and how to setup on aws and Onpremise servers

    • @RaghavPal
      @RaghavPal  4 года назад +1

      I will plan for that Ram

    • @kommuram5435
      @kommuram5435 4 года назад

      @@RaghavPal thanks Raghav

  • @jaikishank
    @jaikishank 2 года назад

    Thanks for the clear explanation in the video. Deeply appreciate your knowledge sharing...

    • @RaghavPal
      @RaghavPal  2 года назад

      Glad it was helpful Jaikishan

  • @radhikarao5106
    @radhikarao5106 3 года назад +1

    Great Explanation! Can you please explain how SSL and SSL certs work with an analogy? If you can show us how to Create and replace certs in a server that would be great!!

    • @RaghavPal
      @RaghavPal  3 года назад

      Sure Radhika, I will plan a session

  • @ekleanthony7735
    @ekleanthony7735 2 года назад

    Nice video.. Thanks for the explicit and careful explanation.

    • @RaghavPal
      @RaghavPal  2 года назад +1

      Glad it was helpful

  • @karteeshv
    @karteeshv 3 года назад

    Main thing in SSH is related to keys.. but u explained that part in just a minute.

    • @RaghavPal
      @RaghavPal  3 года назад

      Thanks for watching Karteesh

  • @mohammadahmedragab837
    @mohammadahmedragab837 2 года назад

    thank you so much , great explanation

  • @biswabhusanswain7528
    @biswabhusanswain7528 2 года назад

    Thanks for clearing my doubt 🙏🙏🙏

  • @sophiyaanudeep9397
    @sophiyaanudeep9397 2 года назад

    Miraculous explanation... crystal clear...

  • @NehaYT
    @NehaYT 11 месяцев назад

    Very well explained sir 🎉

    • @RaghavPal
      @RaghavPal  11 месяцев назад

      Thanks and welcome Neha

  • @santoshbehera9261
    @santoshbehera9261 3 года назад

    Thank you for getting the knowledge from you I searched for.

    • @RaghavPal
      @RaghavPal  3 года назад

      Most welcome Santosh

  • @srikanthgandhi7289
    @srikanthgandhi7289 2 года назад

    Very clear Explanation. 🙏 thanks lot

    • @RaghavPal
      @RaghavPal  2 года назад

      Most welcome Srikanth

  • @grigoriyz
    @grigoriyz 3 года назад

    Thank you for easy explanation! Good job!

  • @devyetii
    @devyetii 4 года назад +1

    Thank you Raghav ❤️. I've a question .. can't a man in the middle steal this "box" of info by attaching his key ? Is there any check on the sent key ?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi Ebrahim, the person needs to have the authentic private key. Also it is recommended to secure your private key with password, so just in case someone gets access to you private key, he will still need to provide password to use it.

    • @devyetii
      @devyetii 4 года назад

      @@RaghavPal Got it! Many thanks for your reply 💜

  • @shrutibansal5261
    @shrutibansal5261 2 года назад +1

    Great video

  • @RahulWalli
    @RahulWalli Год назад

    Thank you so much for this video 💓

  • @tomriddle2427
    @tomriddle2427 4 года назад

    Brilliant it was the way you explained can't be any simpler, thank-you

  • @shaikhanuman8012
    @shaikhanuman8012 2 года назад

    Great Content sir. Tq for providing.

  • @neelakantannilakantanswami4031
    @neelakantannilakantanswami4031 3 года назад

    Thanks for the info . Keep continuing your good work

  • @shadow_self8564
    @shadow_self8564 3 года назад

    Beautifully explained. Thanks

    • @RaghavPal
      @RaghavPal  3 года назад

      Most welcome Saurabh

  • @elaveniltharumarasan5484
    @elaveniltharumarasan5484 11 месяцев назад

    Very nicely done! Thank you!

    • @RaghavPal
      @RaghavPal  11 месяцев назад

      Most welcome Elavenil

  • @vitteshwarayaramanavenky2187
    @vitteshwarayaramanavenky2187 3 года назад

    Explained very well,I thanking you sir

  • @toallin150
    @toallin150 3 года назад

    Thank you Raghav 🙌 . Great explanation!

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad it was helpful!

  • @ravimohanboggula8117
    @ravimohanboggula8117 4 года назад

    NICE Job Raghav like the series school of basics, I would appreciate if you could discuss about Installing SSL certificates and how they work too

    • @RaghavPal
      @RaghavPal  4 года назад

      Sure Ravi, Keep learning

  • @aditifabregas
    @aditifabregas 2 года назад

    How can the server (remote machine) decrypt with public key? Then the very purpose of encryption is lost.

    • @RaghavPal
      @RaghavPal  2 года назад

      I will try to add a detailed session Aditi

  • @karthiknarayan8
    @karthiknarayan8 3 года назад

    Thank you for the simple explanation..really helpful.🙏

  • @canadatorontovideos7283
    @canadatorontovideos7283 4 года назад

    Kindly need a step by step video on automation testing about azure data lake/factory/blob etc.

  • @kamaleshpramanik7645
    @kamaleshpramanik7645 3 года назад

    This is superb ... Thank you very much Sir.

    • @RaghavPal
      @RaghavPal  3 года назад

      You are most welcome Kamalesh

  • @GaneshNayak
    @GaneshNayak 3 года назад

    Too good man.. very well explained..

  • @ThePuneet681
    @ThePuneet681 3 года назад

    Simple and clear explanation, thanks 🙏

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad it was helpful!

  • @sarthakgupta7955
    @sarthakgupta7955 Год назад

    does the two lock mechanism happen in every message exchange?

    • @RaghavPal
      @RaghavPal  Год назад

      Hi Sarthak
      Both these mechanisms are performed during the initial setup phase of an SSH session, and are not repeated in every message exchange. However, they are in place throughout the duration of the SSH session to ensure message integrity and prevent packet loss due to interleaving.

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 2 года назад

    Amazing video

  • @eugenegorodetsky6494
    @eugenegorodetsky6494 3 года назад

    thanks ! really helpfull

  • @chaitanyakrishna9398
    @chaitanyakrishna9398 3 года назад

    So helpful.

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad it was helpful Chaitanya

  • @ywahab25
    @ywahab25 11 месяцев назад

    good explanation my dear

    • @RaghavPal
      @RaghavPal  11 месяцев назад

      Thank you 🙂

  • @xyz123636
    @xyz123636 4 года назад

    Your all videos are very helpful.
    If possible, please create few videos for shell scripting topic.
    Thanks for creating nice videos, God bless

  • @dhevanrajandran7632
    @dhevanrajandran7632 2 года назад

    Great video :)

  • @Nachiket_upadhye_23
    @Nachiket_upadhye_23 4 года назад

    thank you for such wonderful explanation

    • @RaghavPal
      @RaghavPal  4 года назад

      Most welcome Nachiket

  • @odunayokomolafe9485
    @odunayokomolafe9485 2 года назад

    Great presentation!

    • @RaghavPal
      @RaghavPal  2 года назад

      Thanks for watching Odunayo

  • @saifuddinraj8774
    @saifuddinraj8774 4 года назад

    Awesome explanation. Thank you 😊

    • @RaghavPal
      @RaghavPal  4 года назад

      Most welcome Saifuddin

  • @vetribull8318
    @vetribull8318 3 года назад

    Hi Raghav, Thank you very much for your explanation. Got any chances to migrate openssh key from windows to another windows ?

    • @RaghavPal
      @RaghavPal  3 года назад

      Not yet, will need to check online

    • @vetribull8318
      @vetribull8318 3 года назад

      @@RaghavPal Thanks Raghav

  • @MiraclesU123.
    @MiraclesU123. 3 года назад

    Nice and simple explanation!

    • @RaghavPal
      @RaghavPal  3 года назад

      Glad it was helpful!

  • @vkrishna606
    @vkrishna606 2 года назад

    well explained

  • @vaibhavppandey
    @vaibhavppandey 3 года назад

    Very good explanation sir. Thank you very much :)

    • @RaghavPal
      @RaghavPal  3 года назад

      You are most welcome

  • @arunprasad8261
    @arunprasad8261 3 года назад

    nice lecture on SSH. thanks

  • @sailakshmankinthali6501
    @sailakshmankinthali6501 2 года назад

    Super explanation

  • @jcaminos
    @jcaminos 2 года назад

    Sorry but you are wrong, minute 10:04 privates keys are used for decryption ONLY, the public key is the one used for encryption. The server must send its public key to the client so that the client can encrypt information sent to the server.

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi, I will check that again, thanks for letting me know

  • @abhaypatidar7948
    @abhaypatidar7948 3 года назад

    Hello Sir, I watched your video to understand the ssh. I have a doubt over the flow that you explained in the last. As we know that ssh uses public-key cryptography where a message encrypted using public can only be decrypted by its private key. But in your flow, at last, you said that the client encrypts the message sent by the server with the private key, and then sends it to the server, then the server decrypts it using the public key.

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Abhay, pls check this too - automationstepbystep.com/2020/07/23/a-story-of-ssh-secure-shell/

    • @abhaypatidar7948
      @abhaypatidar7948 3 года назад

      @@RaghavPal Thank you sir, do we have more link that shows actually how authentication takes place.

    • @RaghavPal
      @RaghavPal  3 года назад

      will need to search more online

    • @gxp9223
      @gxp9223 2 года назад

      you need to make a correction. encryption happens using the public key and decryption happens using the private key

  • @kedardeuskar3865
    @kedardeuskar3865 4 года назад

    Nice Explanation of SSH

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad it was helpful Kedar

  • @MahaPSaranu
    @MahaPSaranu 4 года назад

    Bless you Raghav. So simple and useful explanation. Please could you also explain about Putty ?

  • @PoornaCW
    @PoornaCW 2 года назад

    Thank you so much

  • @dineshdewangan8390
    @dineshdewangan8390 4 года назад

    Great sir,
    Waiting for next..

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Will be coming next week Dinesh

  • @singaravelann3671
    @singaravelann3671 4 года назад

    If in server we have a more number of public keys how the server identifies using which key it should decrypt the message??

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Singaravelan, there is cryptographic fingerprint that is used to uniquely identify the keys.

  • @devendradhillon4204
    @devendradhillon4204 3 года назад

    Good explanation

    • @RaghavPal
      @RaghavPal  3 года назад

      Thanks and welcome Devendra

  • @tarunarora3266
    @tarunarora3266 2 года назад

    nice introduction

  • @bharathkumarchalla3558
    @bharathkumarchalla3558 2 года назад

    thankyou so much its very small word to say....but thanks

  • @deepaknayak3582
    @deepaknayak3582 15 дней назад

    Thankyou boss ❤️🫂

    • @RaghavPal
      @RaghavPal  15 дней назад

      You’re welcome Deepak

  • @anuragsandhu9590
    @anuragsandhu9590 4 года назад +1

    Amazing

  • @Manish_Kumar_Bihar
    @Manish_Kumar_Bihar 3 года назад

    nice sir ,u explain very well!!!

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Thanks and welcome Manish

  • @tulasiramsunkara
    @tulasiramsunkara 4 года назад

    Excellent explanation 👌👏👏👏👏

    • @RaghavPal
      @RaghavPal  4 года назад

      Thanks for watching Tulasi

  • @arunbandari8936
    @arunbandari8936 3 года назад

    Hi Sir
    In Password-based authentication, if I enter a password and click on ENTER button. Now hackers may see my password in between the client and server channel.
    when the secure connection will be open, after the correct password providing or before.

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Arun,
      will check on this

    • @arunbandari8936
      @arunbandari8936 3 года назад

      @@RaghavPal hi sir did you got any information?

  • @priyapatel8711
    @priyapatel8711 Год назад

    Nice Video :)

  • @honeybunny9977
    @honeybunny9977 4 года назад

    Hi Raghav....what is the difference between Putty and ZOC?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi, I have not used ZOC, Can find more here -
      en.wikipedia.org/wiki/Comparison_of_SSH_clients
      www.slant.co/versus/499/5495/~putty_vs_zoc-terminal

  • @NikhilSingh-hc7td
    @NikhilSingh-hc7td 3 года назад

    thanks sir

  • @toshitsingh7270
    @toshitsingh7270 3 года назад

    Damm nailed the explanation 👏

  • @tanveersyed1049
    @tanveersyed1049 4 года назад

    Thanks ...Nice explanation

    • @RaghavPal
      @RaghavPal  4 года назад

      You are welcome Tanveer

  • @manojkumarneesu2773
    @manojkumarneesu2773 2 года назад

    in my hpc server my gpu node is showing down how to activate it using ssh commands can you please tell me

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Manoj, I will need to check details

  • @priyaigu1306
    @priyaigu1306 2 года назад

    Hi Raghav,
    I am getting permission denied all the time when i try to enter into the machine, passwords are correct. The first step runs successfully (sequence completed) but in the very next step when i enter password, permission denied. How to solve this problem??

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Priya, will need to check your setup

    • @priyaigu1306
      @priyaigu1306 2 года назад

      @@RaghavPal Please suggest a way to check setup??

  • @ywahab25
    @ywahab25 11 месяцев назад

    keep moving, more little , authentication methods for eg

  • @honeybunny9977
    @honeybunny9977 4 года назад

    Do you have any video on github n gitlab for beginners?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Yes, pls check here - automationstepbystep.com/