School Of Basics | What is SSH | How SSH works

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 241

  • @michaelrider9067
    @michaelrider9067 2 роки тому +22

    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.

  • @JPH-ps6ic
    @JPH-ps6ic 9 місяців тому +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  9 місяців тому +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..

  • @PrabasView
    @PrabasView 4 роки тому +9

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

  • @dayanandswami8109
    @dayanandswami8109 Рік тому +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.

  • @nandhinirajendran1396
    @nandhinirajendran1396 4 роки тому +5

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

    • @RaghavPal
      @RaghavPal  4 роки тому

      Humbled to know this Nandhini

  • @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 !!

  • @scottrussell6873
    @scottrussell6873 3 роки тому +2

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

  • @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:)

  • @RachitMalvi
    @RachitMalvi 3 роки тому +3

    Thank you, Raghav. Great expalination!

  • @rageshnc
    @rageshnc 3 роки тому +1

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

    • @RaghavPal
      @RaghavPal  3 роки тому

      Glad it was helpful Ragesh

  • @sundarmishra561
    @sundarmishra561 3 роки тому +1

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

  • @sophiyaanudeep9397
    @sophiyaanudeep9397 2 роки тому

    Miraculous explanation... crystal clear...

  • @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.

  • @seydangulyesil
    @seydangulyesil 9 місяців тому

    it's absolutely great explain 👏👏👏

    • @RaghavPal
      @RaghavPal  9 місяців тому

      Glad it was helpful!

  • @jimmelbermudez
    @jimmelbermudez 2 роки тому

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

    • @RaghavPal
      @RaghavPal  2 роки тому

      You are very welcome Jimmel

  • @shrutibansal5261
    @shrutibansal5261 2 роки тому +1

    Great video

  • @ayushpatel2171
    @ayushpatel2171 3 роки тому +1

    Nice explanation sir thank you very much.

    • @RaghavPal
      @RaghavPal  3 роки тому

      You are most welcome Ayush

  • @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

  • @odunayokomolafe9485
    @odunayokomolafe9485 3 роки тому

    Great presentation!

    • @RaghavPal
      @RaghavPal  3 роки тому

      Thanks for watching Odunayo

  • @biswabhusanswain7528
    @biswabhusanswain7528 2 роки тому

    Thanks for clearing my doubt 🙏🙏🙏

  • @ekleanthony7735
    @ekleanthony7735 2 роки тому

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

  • @madhavans8442
    @madhavans8442 3 роки тому

    please continue educating us.Thanks!

  • @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

  • @shaikhanuman8012
    @shaikhanuman8012 2 роки тому

    Great Content sir. Tq for providing.

  • @mahimahesh5616
    @mahimahesh5616 4 роки тому +2

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

  • @JohnJohnson-sf5wl
    @JohnJohnson-sf5wl 2 роки тому

    Thanks for the simple explanations

  • @NehaYT
    @NehaYT Рік тому

    Very well explained sir 🎉

  • @niyazshkl9584
    @niyazshkl9584 4 місяці тому

    Great explanation!

    • @RaghavPal
      @RaghavPal  4 місяці тому

      Glad it was helpful Niyaz

  • @luckyadeloye3452
    @luckyadeloye3452 2 роки тому

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

  • @wmchow8943
    @wmchow8943 2 роки тому

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

  • @srikanthgandhi7289
    @srikanthgandhi7289 3 роки тому

    Very clear Explanation. 🙏 thanks lot

  • @kamaleshpramanik7645
    @kamaleshpramanik7645 3 роки тому

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

    • @RaghavPal
      @RaghavPal  3 роки тому

      You are most welcome Kamalesh

  • @rajeeshnangariyil3600
    @rajeeshnangariyil3600 3 роки тому

    These information are gold dust

  • @rogerthat7190
    @rogerthat7190 2 роки тому

    Thank you sir for the clear explanation

  • @neelakantannilakantanswami4031
    @neelakantannilakantanswami4031 3 роки тому

    Thanks for the info . Keep continuing your good work

  • @shadow_self8564
    @shadow_self8564 3 роки тому

    Beautifully explained. Thanks

  • @jaikishank
    @jaikishank 3 роки тому

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

    • @RaghavPal
      @RaghavPal  3 роки тому

      Glad it was helpful Jaikishan

  • @sandeep87raju
    @sandeep87raju 4 роки тому +1

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

    • @RaghavPal
      @RaghavPal  4 роки тому

      Thanks for watching Sandeep

  • @GaneshNayak
    @GaneshNayak 3 роки тому

    Too good man.. very well explained..

  • @elaveniltharumarasan5484
    @elaveniltharumarasan5484 Рік тому

    Very nicely done! Thank you!

  • @tulasiramsunkara
    @tulasiramsunkara 4 роки тому

    Excellent explanation 👌👏👏👏👏

    • @RaghavPal
      @RaghavPal  4 роки тому

      Thanks for watching Tulasi

  • @yavdhesh
    @yavdhesh 3 роки тому

    dhanywaada guruji

  • @kedardeuskar3865
    @kedardeuskar3865 4 роки тому

    Nice Explanation of SSH

    • @RaghavPal
      @RaghavPal  4 роки тому

      Glad it was helpful Kedar

  • @santoshbehera9261
    @santoshbehera9261 3 роки тому

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

  • @RahulWalli
    @RahulWalli 2 роки тому

    Thank you so much for this video 💓

  • @grigoriyz
    @grigoriyz 3 роки тому

    Thank you for easy explanation! Good job!

  • @mohammadahmedragab837
    @mohammadahmedragab837 3 роки тому

    thank you so much , great explanation

  • @karthiknarayan8
    @karthiknarayan8 3 роки тому

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

  • @toallin150
    @toallin150 3 роки тому

    Thank you Raghav 🙌 . Great explanation!

  • @tomriddle2427
    @tomriddle2427 4 роки тому

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

  • @ThePuneet681
    @ThePuneet681 3 роки тому

    Simple and clear explanation, thanks 🙏

  • @vitteshwarayaramanavenky2187
    @vitteshwarayaramanavenky2187 3 роки тому

    Explained very well,I thanking you sir

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 2 роки тому

    Amazing video

  • @arunprasad8261
    @arunprasad8261 3 роки тому

    nice lecture on SSH. thanks

  • @ywahab25
    @ywahab25 Рік тому

    good explanation my dear

  • @MiraclesMe
    @MiraclesMe 3 роки тому

    Nice and simple explanation!

  • @dineshdewangan8390
    @dineshdewangan8390 4 роки тому

    Great sir,
    Waiting for next..

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Will be coming next week Dinesh

  • @chaitanyakrishna9398
    @chaitanyakrishna9398 3 роки тому

    So helpful.

    • @RaghavPal
      @RaghavPal  3 роки тому

      Glad it was helpful Chaitanya

  • @tarunarora3266
    @tarunarora3266 2 роки тому

    nice introduction

  • @vkrishna606
    @vkrishna606 2 роки тому

    well explained

  • @Manish_Kumar_Bihar
    @Manish_Kumar_Bihar 3 роки тому

    nice sir ,u explain very well!!!

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Thanks and welcome Manish

  • @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

  • @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

  • @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 💜

  • @sailakshmankinthali6501
    @sailakshmankinthali6501 3 роки тому

    Super explanation

  • @dhevanrajandran7632
    @dhevanrajandran7632 2 роки тому

    Great video :)

  • @radhikarao5106
    @radhikarao5106 4 роки тому +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  4 роки тому

      Sure Radhika, I will plan a session

  • @eugenegorodetsky6494
    @eugenegorodetsky6494 3 роки тому

    thanks ! really helpfull

  • @devendradhillon4204
    @devendradhillon4204 3 роки тому

    Good explanation

    • @RaghavPal
      @RaghavPal  3 роки тому

      Thanks and welcome Devendra

  • @avakasavaadhi4726
    @avakasavaadhi4726 3 роки тому +1

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

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      default is port 22, but this can change

  • @saifuddinraj8774
    @saifuddinraj8774 4 роки тому

    Awesome explanation. Thank you 😊

    • @RaghavPal
      @RaghavPal  4 роки тому

      Most welcome Saifuddin

  • @anuragsandhu9590
    @anuragsandhu9590 4 роки тому +1

    Amazing

  • @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

  • @Nachiket_upadhye_23
    @Nachiket_upadhye_23 4 роки тому

    thank you for such wonderful explanation

  • @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

  • @vaibhavppandey
    @vaibhavppandey 3 роки тому

    Very good explanation sir. Thank you very much :)

  • @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.

  • @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?

  • @canadatorontovideos7283
    @canadatorontovideos7283 4 роки тому

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

  • @BlokeBritish
    @BlokeBritish 3 роки тому

    u say tat the security is coz of encryption. so if not encrypted then wat exactly is the risk ? do u mean a hacker cn use some tools to do network sniffing and get access to the data or sumthing like tat ?? coz im new to all this and im confused wen i hear things like "not secure" ive also heard tat in http vs https

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Hi Czar, yes so without encryption it will be a step easier for hackers, I am going a plan a security testing Q&A soon. that will help

    • @BlokeBritish
      @BlokeBritish 3 роки тому

      @@RaghavPal thanks man

  • @lochan47
    @lochan47 2 місяці тому

    awesome>>>>

    • @RaghavPal
      @RaghavPal  2 місяці тому +1

      Thanks a lot Lochan

  • @priyapatel8711
    @priyapatel8711 Рік тому

    Nice Video :)

  • @deepaknayak3582
    @deepaknayak3582 4 місяці тому

    Thankyou boss ❤️🫂

    • @RaghavPal
      @RaghavPal  4 місяці тому

      You’re welcome Deepak

  • @Rhythmicwalker
    @Rhythmicwalker 4 роки тому

    Very nice 👍

    • @RaghavPal
      @RaghavPal  4 роки тому

      Thanks for watching Prakash

  • @tanveersyed1049
    @tanveersyed1049 4 роки тому

    Thanks ...Nice explanation

    • @RaghavPal
      @RaghavPal  4 роки тому

      You are welcome Tanveer

  • @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 3 роки тому

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

  • @vetribull8318
    @vetribull8318 4 роки тому

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

    • @RaghavPal
      @RaghavPal  4 роки тому

      Not yet, will need to check online

    • @vetribull8318
      @vetribull8318 4 роки тому

      @@RaghavPal Thanks Raghav

  • @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

  • @toshitsingh7270
    @toshitsingh7270 3 роки тому

    Damm nailed the explanation 👏

  • @PoornaCW
    @PoornaCW 2 роки тому

    Thank you so much

  • @immanueln3900
    @immanueln3900 4 місяці тому

    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  4 місяці тому

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

  • @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??

  • @MahaPSaranu
    @MahaPSaranu 4 роки тому

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

  • @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

  • @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.

  • @abdul9910
    @abdul9910 4 роки тому

    I like a lot your videos keep going on

  • @honeybunny9977
    @honeybunny9977 4 роки тому

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

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Yes, pls check here - automationstepbystep.com/

  • @NikhilSingh-hc7td
    @NikhilSingh-hc7td 4 роки тому

    thanks sir