SSH Key Authentication | How to Create SSH Key Pairs

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024

ความคิดเห็น • 88

  • @dolbrechts1980
    @dolbrechts1980 2 ปีที่แล้ว +12

    On Windows cmd you can use ssh by default!

    • @TylerB_777
      @TylerB_777 2 ปีที่แล้ว +1

      I noticed that it doesn't have the cool shortcuts that Linux does though. For example ssh-copy-id which is pretty annoying.

  • @DerLung
    @DerLung ปีที่แล้ว +2

    I have ssh installed on windows (I can just use it in the terminal) and I can't remember ever having to install it so windows users: maybe you don't even have to install it. Just check by typing ssh into the command prompt and if it gives no error, it is installed.

  • @ozzman530
    @ozzman530 2 ปีที่แล้ว +2

    but modern windows does have an ssh client by default.... no putty needed

  • @michalroesler
    @michalroesler ปีที่แล้ว +2

    In Windows we use the terminal (cmd) or PowerShell and we don't need Putty at all. It's 2 years or so, since Windows natively supports ssh connections through PowerShell.

  • @phenoumene
    @phenoumene 2 ปีที่แล้ว +1

    please, tell why using password is 'wrong' ..

  • @GinnyLazer
    @GinnyLazer 9 วันที่ผ่านมา

    Thanks for the forecast! 📊 Just a small off-topic question: 😅 I only have these words 🤔. (behave today finger ski upon boy assault summer exhaust beauty stereo over). I don't know what they are. What should I do with them? 🤷‍♀️

  • @RoniaMastin
    @RoniaMastin 17 วันที่ผ่านมา

    You're doing a fantastic job! I have a quick question: My OKX wallet holds some USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). What's the best way to send them to Binance?

  • @ameador01
    @ameador01 2 ปีที่แล้ว +2

    Windows 10 has a built in option to install the OpenSSH client from Windows Apps and Features. It would be cool to show using that client as it is accessible from the Windows cli and ssh-keygen works from there as well - storing it in the Windows equivalent user/home folder/.ssh structure. However, it doesn't seem to work from there when using the ssh connection - unless I'm setting it up wrong - but that's why it would be nice to see a video using this method and going through setup - using the native Openssh tools.

  • @Geogak
    @Geogak 15 วันที่ผ่านมา

    Wait, if you add Public Key auth, why dose the server still accept password auth from the client? Isn't the point to disallow Password authentication?

  • @innerscopefx4961
    @innerscopefx4961 2 ปีที่แล้ว +2

    This video may have saved my computer from me throwing it at the wall in a fit of rage as I’m having trouble accessing my vps. Thanks for the great video

  • @JarppaGuru
    @JarppaGuru 7 หลายเดือนก่อน

    9:49 BOMM hacker in. thats easy it is no security at all. hacker send public key and he get in. only need user pand password to login. yes its that easy.
    more easy bruteforce password bcoz there is no 3 attept wait 24 hour or contact admin. so you can try try try root password. thats easy.
    if you get password and it wont let log in. send public key and BOOM. i not get lol why user is one who send public key when server should send LOL

  • @FAli-of1ci
    @FAli-of1ci 16 วันที่ผ่านมา

    I followed these steps but for whatever reason the authotized_keys wasn't generated (on the remote host)
    and I was still prompted for pw when ssh from local

  • @JAVIERMURCIA-t4q
    @JAVIERMURCIA-t4q 2 หลายเดือนก่อน +1

    hi jay, great video, this help me for my job. thakns from colombia. your are my favorite instructor in akamai.

  • @lekemp
    @lekemp ปีที่แล้ว +1

    Windows 10 and 11 do include ssh installed by default. Just open cmd or powershell and type ssh. The config files are located under C:\Users\\.ssh. No need to use Putty anymore.

  • @Dev-sf3pz
    @Dev-sf3pz ปีที่แล้ว +2

    Underrated tutorial on how SSH certs work in relation to client / server and multiple OSs. Cheers!

  • @tolupraise
    @tolupraise 2 ปีที่แล้ว +1

    Hello,
    Please what command prompt application did you use to input the commands?

  • @JPEO
    @JPEO ปีที่แล้ว

    Mine got "Server refused our key" though I followed eveything.

  • @mohamedsayed5394
    @mohamedsayed5394 9 หลายเดือนก่อน

    i have question pls : why we put private key in putty while we usually send only public key

  • @disasterarea9341
    @disasterarea9341 5 หลายเดือนก่อน

    I followed the advice but it hasn't worked :/ when I try and ssh in it still asks for my password. i can see the public key in the authorized keys file. Do I need to make changes to ssh_config or something?

    • @disasterarea9341
      @disasterarea9341 5 หลายเดือนก่อน

      I managed to get things working by redoing the ssh-keygen process without specifying a file when prompted with "Enter file in which to save the key (/home/user/.ssh/id_rsa)"
      I noticed when doing ssh -v user@host, there were a number of lines of the form
      Will attempt key: /home/george/.ssh/id_rsa
      Will attempt key: /home/george/.ssh/id_ecdsa
      ...
      but did not check the key I had made. I assume there's some config file somewhere which tells it what keys to check - and you'd have to add a new entry if you save your key in an unusual place.
      it's so easy to trip up :)

  • @AdrianRandall
    @AdrianRandall ปีที่แล้ว +2

    Just what I needed thank you. Really clear and easy to follow along. Great content.

  • @k.chriscaldwell4141
    @k.chriscaldwell4141 วันที่ผ่านมา

    Bada bing! Thank you.

  • @CommonsVivian-w6p
    @CommonsVivian-w6p 9 วันที่ผ่านมา

    Jones Cynthia Miller Mark Lee Lisa

  • @Freddo4J
    @Freddo4J 2 ปีที่แล้ว +2

    This was awesome - thanks! So clear and easy!

  • @lands1459
    @lands1459 หลายเดือนก่อน

    permission denied (publickey)

  • @alvinnoboa8694
    @alvinnoboa8694 3 หลายเดือนก่อน

    windows now have ssh client base on openssh

  • @rappalini
    @rappalini 2 ปีที่แล้ว

    Hi!!!! Im following this steps perfectly (to conect two ubuntu docker containers) and it keeps asking me for the password... why could this be? thanks in advance for any help!!!!

  • @JakubHerbe
    @JakubHerbe 2 ปีที่แล้ว

    Hi great video, but I'd like to see tutorial with Ed25519. Today, the RSA is the most widely used public-key algorithm for SSH key. But compared to Ed25519, it’s slower and even considered not safe if it’s generated with the key smaller than 2048-bit length.

  • @send2gl
    @send2gl 2 ปีที่แล้ว

    I do have a number of Raspberry Pi devices on my home network plus manage an Ubuntu system remotely for a friend. Initially I confused myself a wee bit by actually naming the private and public keys but strangely it all worked fine, seems the actual name of the file is irrelevant, just the contents important.

  • @Otobong_Peter
    @Otobong_Peter 2 ปีที่แล้ว

    On windows you can use WSL without the need for pUTTY from windows 10 uowards.

  • @mdhurrtn
    @mdhurrtn ปีที่แล้ว

    Great tutorial for openssh for windows 10 pro. Do you have a tutorial for ssh in windows when creating an OpenVPN linode server? Thanks.

  • @SHARK224
    @SHARK224 ปีที่แล้ว

    I have question on the ssh key pairs . I run the key Gen by root account then put the public key to target server logon as another account home directory. May I know if I logon to target server with non root account with no password ?

  • @nexaentertainment2764
    @nexaentertainment2764 2 ปีที่แล้ว

    To anyone fairly new like me, don't forget to leave the id_ at the start of the filename. Pretty sure that's probably something I was supposed to know but it just caused me an hour or two of headache before realizing...
    If it isn't common knowledge or something you're supposed to do, it at the very least appears to be default behavior with Windows' OpenSSH implementation. It appears like it won't try user generated keys upon connecting unless you have id_ at the start of the filename.

  • @---GOD---
    @---GOD--- 2 ปีที่แล้ว

    You shouldn't show your public key just like you shouldn't show your password.
    If someone knows your IP and username, then the public key is akin to a password (unless you also use a password, then they can attempt to brute force that).

  • @Ashish-d3m2e
    @Ashish-d3m2e 8 หลายเดือนก่อน

    Hello, I am getting this error so not able to save public key- please help me. Here is message- "Saving key "/home/user1/.ssh/id_rsa" failed: Not a directory"

  • @phenoumene
    @phenoumene 2 ปีที่แล้ว

    hi, thanks a lot for your useful TV 👍 i've watched several of you're videos and i want to thank you for the help you're providing to the rookie i am 😄 it's my fist message here to ask for the correct command when using a another user, if wanting to do this for several users, and use a different port than 22 (which is 'the wrong way to do it' ; )

  • @josuangulo9803
    @josuangulo9803 6 หลายเดือนก่อน

    Amazing video, helped me a lot, now I Know the usage of the ssh keys, thank you so much

  • @Ouchie
    @Ouchie ปีที่แล้ว

    If I want to use SSH for a server and for GitHub, do I generate two new keys for each service or is it common to reuse the existing one?

  • @carisma-uk
    @carisma-uk ปีที่แล้ว

    thank you very much; I knew about this but never remember the exact sequence of actions; now I did it following your video and it works like a dream

  • @bobbybologna3029
    @bobbybologna3029 2 ปีที่แล้ว

    I can always rely on Jay to save me from myself lol, I set up an SSH key before, forgot about it, now here i am again months later lol

  • @varadendrav8706
    @varadendrav8706 2 ปีที่แล้ว

    Great explanation. Is there a video on password-less ssh from Linux to Windows

  • @TehAnKorage
    @TehAnKorage ปีที่แล้ว

    How to copy a key from one client to another when two machines log into one?

  • @NickForsberg85
    @NickForsberg85 ปีที่แล้ว

    Thanks! This helped me with what I needed and you explained it very clear! 10 stars! :)

  • @Matt-vi2zt
    @Matt-vi2zt ปีที่แล้ว

    This is exactly a good example of a tutorial, thanks!

  • @jcdock
    @jcdock 2 ปีที่แล้ว

    Windows does have inbuilt ssh, using powershell

  • @veaceslavbivol1050
    @veaceslavbivol1050 ปีที่แล้ว

    Thank you , You made it very clear and straight to the point

  • @kidsstorytime1573
    @kidsstorytime1573 ปีที่แล้ว

    awesome video, please how do i access my private key?

  • @muzikmyke3008
    @muzikmyke3008 ปีที่แล้ว

    Great video! Thank you so much.

  • @vanik0r0
    @vanik0r0 2 ปีที่แล้ว

    Jay, not sure where I'm going wrong but whenever I try to login to my linode server, the passwood is not recognized. I've repeated your process and re-created the linode using the same password but I'm still refused access. Am using Fedora 35 as my desktop, could it be an SElinux thing?

    • @vanik0r0
      @vanik0r0 2 ปีที่แล้ว

      Tried it on EndeavourOS and it worked.....thanks!

  • @profetik777
    @profetik777 ปีที่แล้ว

    Thank you for doing this for noob like me!

  • @bin4rym4ge
    @bin4rym4ge 2 ปีที่แล้ว

    This was invaluable when setting up my Kali ssh server. Thanks. :)

  • @bullmarket7061
    @bullmarket7061 ปีที่แล้ว

    Thank you, super easy to make it on windows

  • @fouadchaar4021
    @fouadchaar4021 ปีที่แล้ว

    thank you

  • @viktormohl7332
    @viktormohl7332 ปีที่แล้ว

    thank you, that was very helpful.

  • @hangemhi001
    @hangemhi001 2 ปีที่แล้ว

    ty for the outstanding clarification on how to do this

  • @erikolkonen2915
    @erikolkonen2915 5 หลายเดือนก่อน

    Very helpful. Thank you!

  • @lxw5231
    @lxw5231 2 ปีที่แล้ว

    very good tutorial. thanks.

  • @phakamilemimisikobi1046
    @phakamilemimisikobi1046 ปีที่แล้ว

    Thank u soooo much. Very helpful

  • @paulmacgiollacaoine8619
    @paulmacgiollacaoine8619 2 ปีที่แล้ว

    Very good video, thanks you.
    Just wondering, if I followed your instructions and uploaded my public key to a server does that mean anyone with access to that public key can access that same server?

    • @inuyashacoolieo
      @inuyashacoolieo ปีที่แล้ว

      No, because the private key is stored on the client machine. You created the key pair on your machine and then added just the public key to the server (using the real password for the server). So you still need to know the login credentials for the server to set up the key pair for the first time. Even if someone else had the public key it would be useless to them.

  • @stephenrogers5458
    @stephenrogers5458 2 ปีที่แล้ว

    Jay, this was very helpful to me in getting RSYNC working to move data from Linux to Linux. I looked at lots of other video and written tutorials, got confused enough to hit lots of subtle roadblocks along the way. What you prove here is this topic is not that complex if you stay focused on the essentials.

  • @minskmade
    @minskmade 2 ปีที่แล้ว

    great video and explanation...thank you

  • @antidotejack2771
    @antidotejack2771 2 ปีที่แล้ว

    great explanation. I saw others tutorials but this made everything snap into place

  • @kevinsenquiz902
    @kevinsenquiz902 2 ปีที่แล้ว

    Amazing video 5 stars!

  • @serpantinthewild
    @serpantinthewild 2 ปีที่แล้ว

    Very comprehensive tutorial

  • @namitaigit
    @namitaigit ปีที่แล้ว

    Really clear and to the point! Thank you!

  • @mrd4233
    @mrd4233 2 ปีที่แล้ว

    The best explanation for ssh! Many thanks!

  • @ethanweatherhead4087
    @ethanweatherhead4087 2 ปีที่แล้ว

    Can you make a video of using yubikeys to ssh into servers please

    • @AkamaiDeveloper
      @AkamaiDeveloper  2 ปีที่แล้ว

      Check out this video th-cam.com/video/4lPvjON4-k8/w-d-xo.html

  • @ВасильКрузенштерн
    @ВасильКрузенштерн 2 ปีที่แล้ว

    Thx from Ukraine!

  • @rakeshpk4991
    @rakeshpk4991 2 ปีที่แล้ว

    Thank you very much!

  • @إبراهيمالهلالي-ش7ش
    @إبراهيمالهلالي-ش7ش ปีที่แล้ว

    instruction clear and on point

  • @asrn1739
    @asrn1739 2 ปีที่แล้ว

    Clear ! thank you

  • @zafrulhasan8924
    @zafrulhasan8924 2 ปีที่แล้ว

    Thanks a lot man

  • @linxploit
    @linxploit ปีที่แล้ว

    Thank you

  • @Rishabhkumar-fe9qf
    @Rishabhkumar-fe9qf 2 ปีที่แล้ว

    helpful❤❤

  • @antonfernando8409
    @antonfernando8409 2 ปีที่แล้ว

    awesome.

  • @True_Muslim_Momin
    @True_Muslim_Momin 2 ปีที่แล้ว

    How to recover access to the server if the private key is lost? Does linode have "rescue" mode?

    • @HazeAnderson
      @HazeAnderson 2 ปีที่แล้ว

      You can launch a LISH console and login with regular credentials.

    • @AkamaiDeveloper
      @AkamaiDeveloper  2 ปีที่แล้ว

      Haze Anderson is right, here is a guide on using the LISH console for more information www.linode.com/docs/guides/using-the-linode-shell-lish/#use-a-web-browser

    • @True_Muslim_Momin
      @True_Muslim_Momin 2 ปีที่แล้ว

      @@AkamaiDeveloper but the point is we will be disabling password access, right?

    • @AkamaiDeveloper
      @AkamaiDeveloper  2 ปีที่แล้ว

      @@True_Muslim_Momin Yes, you will still however be able to login via Lish as a last resort.

    • @True_Muslim_Momin
      @True_Muslim_Momin 2 ปีที่แล้ว

      @@AkamaiDeveloper so Lish works even with the password access disable?

  • @louis5555gmail
    @louis5555gmail 7 หลายเดือนก่อน

    Since ssh is a major security risk, can I have my ssh server to be running only at a specific time of the week?