SSH Login Without Password

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

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

  • @MartinLangATADA
    @MartinLangATADA 5 лет назад +27

    just use
    ssh-copy-id -i .ssh/id_rsa.pub user@REMOTESERVER-IP
    to install your publickey on the remoteserver. this will transfer the publickey and also install it as an authorized key.

    • @TallPaulTech
      @TallPaulTech  5 лет назад +19

      That is a perfect quick way which others have also mentioned. I wanted to explain how it all fits together though so people can understand what's actually happening. People who already know, already know.

  • @Alenmalm
    @Alenmalm 5 лет назад +12

    As stated before, your videos and your pedagogy are amazing !!
    If I should venture to a wish for the future, then linux tutorials is HIGH on the wish list, exactly these videos on how to get control of the CLI from "Boot to Logout"....
    It is absolutely incredible the power and control you get when you master an operating system the way you do.
    I would especially like to add how i appreciate your attitude to find out "how things work".... there are many of us who share your interest..... but very few who master it the way you do !!
    Thanks again.

    • @TallPaulTech
      @TallPaulTech  5 лет назад +3

      Thanks a lot for that. I've always wanted to know how things work.

  • @PaulDone
    @PaulDone 5 лет назад +4

    Best and simplest explanation I have ever seen about key sharing in over 20 years of working with linux.

    • @detectiveinspekta
      @detectiveinspekta 5 лет назад

      Agreed, done it already a few times but never really understood what it was doing until now.

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

    I love how you didn't just show the solution but also included how you got to the solution. You are a good teacher. Thank-you!

  • @wpherigo1
    @wpherigo1 5 лет назад +7

    Check out how to use the .ssh/config file. Easy enough to setup alias names for remote hosts there. .ssh/config can save a lot of typing by allowing you to setup in advance things like X11 Forwarding, tunnels and a whole lot more. Very useful when connecting to remote hosts and you traffic between local and remote hosts or need to use remote GUIs.

    • @lmaoroflcopter
      @lmaoroflcopter 5 лет назад +1

      Defo recommend this. I use this to set up agent forwarding, etc for various hosts. Takes so much pain out of connecting to ssh.

  • @jontscott
    @jontscott 5 лет назад +5

    Nice guide, thank you! Now you are making me want to know how you changed the color of the prompt... I guess I will have to search and find out how you did that because I want my Pi's to have different colors too now!

  • @karsten_m
    @karsten_m 5 лет назад +3

    ssh-copy-id and putting names in .ssh/config could make it a bit easier, too. Depending on personal taste😉 Nice vid.

    • @binnihh
      @binnihh 5 лет назад +1

      Yeah I was thinking the same thing, ssh-copy-id is so much simpler

  • @antonw8134
    @antonw8134 5 лет назад +1

    All great tutorials lately! Will you be creating an unbound caching dns server to name your intranet hosts and black hole advertisers next? That’s probably my favorite hack! I still need to set up LDAP and a radius server to have better administrative control over my home network. Keep up the great work!

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

    Mate this is too good. Made it look very easy and just made it look easy but make it work too! Thanks for this.

  • @typxxilps
    @typxxilps 5 лет назад

    I'm not the SSH guy but this rocks for sure and I like the color identifier scheme too ...
    great stuff to play around this weekend
    thx

  • @rockenrollbass
    @rockenrollbass 5 лет назад +1

    Yes sir, great posts here left and right!

  • @PileofKyle
    @PileofKyle 5 лет назад

    Awesome thanks for this. I’ve seen many videos on this but, it was really helpful how you broke everything down.

  • @r.shackleford4437
    @r.shackleford4437 4 года назад +1

    Thank you so much you are better than a college professor..... im not exaggerating..

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

    Very nice, simple and comprehensive explanation. Thanks

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

    Excellent tutorial. I'm going to copy your idea regarding the shortcuts. It would work in ~/bin too I suspect. I think you did it because /usr/local/bin is in the path, right? But one question. You said that adding the passphrase defeats the purpose. How so? I have passphrases on my keys and as long as I use the ssh-add command I'm only prompted for the passphrase to add them and never prompted when I connect to the remote server. That makes sense as the only key the passphrase protects is the private one and that always stays with you, no?
    I'll be checking out your other vids as you do an excellent job of explaining things.

  • @astrogerard
    @astrogerard 5 лет назад +1

    Nice vid but I would strongly advice always put a passphrase on a private key. Then on sshd disable password login and your system(s) are a lot safer, especially when connected to the Inet.

  • @troybaird404
    @troybaird404 5 лет назад +2

    Why not simply use bash alias for the shortcuts though? Generally is a tad more clean and portable in my experience.

    • @acubley
      @acubley 5 лет назад

      yeppers, that was my first thought- alias sshx='ssh user@host' - x being the first letter of the remote machine
      and then put them in the .bash_aliases file.

  • @sebastianmangelsen8056
    @sebastianmangelsen8056 5 лет назад +1

    I think using an ssh agent on Linux machines makes having passphrases very simple and thus it should be recommended IMHO

  • @diegoramirez3801
    @diegoramirez3801 5 лет назад +1

    great video as always, it will speed up the connections to my pies, gracias

  • @graschbaten
    @graschbaten 11 месяцев назад +1

    THX, i didn'† know the /usr/local/bin solution. This makes my life sooo much nicer

  • @ashutoshpanda4336
    @ashutoshpanda4336 5 лет назад

    Can you please show the 4way handshake in details with packet capturing... And analyze the packets for a better understanding....

  • @binnihh
    @binnihh 5 лет назад +5

    ssh-copy-id would cut this video down by half.

    • @LaenPvP
      @LaenPvP 5 лет назад +1

      Agreed, however, his approach is quite impactful giving a more fundamental understanding of the subject he's explaining.

  • @ArmandoCalderon
    @ArmandoCalderon 5 лет назад +2

    just do a edition of the file .ssh/config and ed25519 is better encryption.

  • @detectiveinspekta
    @detectiveinspekta 5 лет назад

    I dont know if its just me but if I am on windows and generate keys via putty gen, I have to delete the comments, add ssh-rsa and delete all the /n out of the pub key for linux to recognise the key.

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

    I tried that on Windows (since on Linux is a breeze), it all works, except that it keeps asking for password, no matter what

  • @verycasualgamer1784
    @verycasualgamer1784 5 лет назад

    Everyone should be key exchange and a password for elevated commands. Always.

  • @eyeIO
    @eyeIO 5 лет назад

    Can you be so kind to make a similar video but for WiFi? (How to use certificates, instead of passwords) I saw in a enterprise WiFi installation that this is possible

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

    very well explained, sir
    thank you

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

    good info...
    works ok no ssh/windows... thanks!

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

    what to do if someone forget the ssh login password

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

    very clean!

  • @Dygear
    @Dygear 5 лет назад

    Silky Smooth Hopping

  • @BurkenProductions
    @BurkenProductions 5 лет назад

    why use ls -lh instead of ls -la. ls -la is best practise also using /usr/local/bin for scripts is sooo oldschool and outdated. Much better to shove them all in to /bin. Shorter to type too!!

    • @lmaoroflcopter
      @lmaoroflcopter 5 лет назад +4

      You're suggesting ls -la is best "practise" (sic). Rofl.
      Why lh instead of la. Because a. He doesn't want to see dotfiles and b. He likes to see the size of files on disk in human readable format.
      Why would you bother using -la when -lh is the output you actually want to see.
      I may not always list my files but when I do, I do it using grep -lLhH "" ./*