How SSH Works

Поделиться
HTML-код
  • Опубликовано: 6 апр 2022
  • In this video I explain how SSH works.
    Subscribe to my Odysee channel
    odysee.com/@AlphaNerd:8
    ₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿
    Monero
    45F2bNHVcRzXVBsvZ5giyvKGAgm6LFhMsjUUVPTEtdgJJ5SNyxzSNUmFSBR5qCCWLpjiUjYMkmZoX9b3cChNjvxR7kvh436
    Bitcoin
    3MMKHXPQrGHEsmdHaAGD59FWhKFGeUsAxV
    Ethereum
    0xeA4DA3F9BAb091Eb86921CA6E41712438f4E5079
    Litecoin
    MBfrxLJMuw26hbVi2MjCVDFkkExz8rYvUF
    Dash
    Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz
    Zcash
    t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr
    Chainlink
    0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14
    Bitcoin Cash
    qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp
    Etherum Classic
    0xeA641e59913960f578ad39A6B4d02051A5556BfC
    USD Coin
    0x0B045f743A693b225630862a3464B52fefE79FdB
    Subscribe to my RUclips channel goo.gl/9U10Wz
    and be sure to click that notification bell so you know when new videos are released.
  • НаукаНаука

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

  • @brianobey4368
    @brianobey4368 2 года назад +1676

    Ya can't just go around tell the normies about elite hacker tools like ssh. This is gonna get you another strike. Don't you know the first rule about ssh is shh.

    • @KatzRool
      @KatzRool 2 года назад +97

      legendary commentary

    • @davidkeys4284
      @davidkeys4284 2 года назад +8

      It's a scp

    • @Linuslkm
      @Linuslkm 2 года назад +97

      Elite hacker tool wtf, i like this comment because it sits on the line of it being either 8 layers of irony or being made by a 6yo thanks for this masterpiece lmao

    • @devilfrog4209
      @devilfrog4209 Год назад +6

      "Elite hacker tool" boy what

    • @trayambakrai
      @trayambakrai Год назад +63

      @@devilfrog4209
      The joke 💨💨💨
      🤓

  • @Toyking10
    @Toyking10 2 года назад +1281

    I didn’t know how SSH works. Now I do. Thanks Mr Outlaw.

    • @AshleyRiot
      @AshleyRiot 2 года назад +25

      I didn’t even know it existed. Thank you Mr. Outlaw.

    • @Contractor48
      @Contractor48 2 года назад +40

      Yes, now for the other mystery in the life..does anyone know what a woman is?

    • @itsdokko2990
      @itsdokko2990 2 года назад +8

      @@Contractor48 they're a myth

    • @AshleyRiot
      @AshleyRiot 2 года назад +30

      @@Contractor48 is that some sort of forbidden torrent technique?

    • @Contractor48
      @Contractor48 2 года назад +20

      @@AshleyRiot I don’t know, I am not a biologist.

  • @AgentFortySeven47
    @AgentFortySeven47 2 года назад +378

    SSH is one of those concepts I've struggled with a bit in my IT studies. This video explained it perfectly for me. Thanks Mental Outlaw.

  • @crekkk
    @crekkk 2 года назад +567

    It would be great if you could do more of these informative style videos. I suppose the majority of your viewers are probably technically proficient so perhaps it wouldn't be worth it but I think you have an excellent way of explaining a topic without being condescending. It's nice to watch someone explain something without stopping for every tiny detail, but covering the concept in a way that people can understand and develop as a platform for their learning. Either way, great video Outlaw.

    • @TirisT1000
      @TirisT1000 2 года назад +26

      I agree! His style of presentation is informative and enjoyable. Perhaps a second channel would be good?
      I'm still new to computer science topics and am trying to get out of the 'I don't know what I don't know' phase by absorbing as much as I can, so this video was great.

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

      I also like this

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

      I started watching this channel because of the technically informative videos. Now I watch this channel for multiple kinds of informative videos. I just hope Mr. Outlaw keeps churning out videos for us to learn stuff

    • @tjdjultima
      @tjdjultima 2 года назад +2

      I work in the industry and don’t know a lot of this as it’s not immediately related to my role, so, totally agree!

  • @atpray
    @atpray 2 года назад +225

    ssh is a life safer. My use cases
    - Managing my servers.
    - ssh config file is super helpful. Instead of remembering multiple ip's and ports, I can assign it a simple name.
    - Public-private key authentication is super easy. More secure and much convenient, instead of typing password each time you ssh.
    - Port forwarding with ssh to use a vnc viewer on my local desktop. Even tho servers are not meant to have a desktop environment, sometimes it is required (I use them with docker or lxd containers)
    - Port forwarding with ssh to test/configure the website before making it public.
    - Using sshfs, to mount a server directory on local machine. Kinda works like network storage.

    • @TurkeyOW
      @TurkeyOW 2 года назад +5

      I already knew a bit abt ssh so this video was more of a fun time killer. Super cool to hear examples of its versatility because when learning new topics I have a hard time grasping just how many places you can apply them.

    • @ziemniok111
      @ziemniok111 2 года назад +5

      ssh tunneling is fucking brilliant

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

      @@TurkeyOW same. Learning the application of a topic is a bit tough when you're starting out. It's the fun-est bit tho... applicability is key 🔑👌

    • @srpenguinbr
      @srpenguinbr 2 года назад +5

      Another use: logging into a local vm in your regular terminal

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

      another fun thing: proxy jump through a bastion host

  • @Gbennett1425
    @Gbennett1425 2 года назад +32

    I am needing to use this with my Raspberry pi for a class project, having one of my favorite youtubers in this field explain how it works makes it even better

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

      You've probably used ssh-keygen to create a private and public key file, right? I also assume you need to input your password when you log into your pi?
      Use ssh-copy-id to copy your public key to the pi. You'll probably have to change your local config, but it's sooo nice not to type your password every time! :D

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

      @@NostraDavid2 thanks for the tip, I’ll definitely be sure to try that

  • @bahathir_
    @bahathir_ 2 года назад +50

    In late 1990's, network was simple. PC's were connected to 'HUB', and it was very easy to 'sniff' connections. With Slackware Linux, I used program called 'sniffit' and I able to 'see' every connections in the network. IRC was very popular, and I able to 'see' all the chats and sometime I pranked them. :)
    SSH not just replaced the rsh or rlogin, but also ftp and rcp too.
    Thank you.

  • @RetroDev256
    @RetroDev256 2 года назад +97

    Maybe a better idea of what padding would represent in your analogy would not to mix in decoy packages, but to use the same package size for each item you receive, so you could not theoretically infer information about the object inside by its size

    • @fischmann1746
      @fischmann1746 Год назад +1

      This.

    • @GhostkillerPlaysMC
      @GhostkillerPlaysMC 3 месяца назад

      How does it do that? I was thinking it’d be more like putting rocks in the packages. But is this standard weight large enough so that no packet will need to be greater than it?

  • @sebastianarrieta9678
    @sebastianarrieta9678 2 года назад +30

    Thanks to SSH, SFTP exists. It's the same as FTP but through SSH. And it doesn't need the other server to run a FTP server!!!!

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

    You are doing great, I highly appreciate videos of content creators like you. Sending Praise and Love to you, keep going

  • @SacreligousTurkey
    @SacreligousTurkey 2 года назад +87

    Aside from the bloat free, direct, and well articulated information you present every time... That creepy Joe meme at 2:38 is why you’re my favorite person on RUclips

    • @raynerhandrian1486
      @raynerhandrian1486 2 года назад +2

      And it's a lot more cursed if you know the character in that meme

    • @mrkiky
      @mrkiky Год назад +7

      Creepy Joe sniffing that poor unencrypted packet 😥

    • @josesantana3825
      @josesantana3825 Месяц назад

      😅

  • @Kaz-qz2oq
    @Kaz-qz2oq 2 года назад +7

    I learned about SSH by jailbreaking my Apple products years ago. Thanks for spreading the love

  • @ozzy2361
    @ozzy2361 2 года назад +5

    Not only did I really enjoy this, but I also learned a lot. Started from the creation of ssh to modern ssh, all while being super concise. Thanks a lot man!

  • @MeroFuruyaSankarea
    @MeroFuruyaSankarea 2 года назад +14

    this is the content corporate youtube wants!

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

    I would really appreciate more videos like this
    A bit calmer and more focused than usual.

  • @cxob2134
    @cxob2134 2 года назад +7

    use it every day, still learned something, the sign of good content!

  • @typeer
    @typeer 2 года назад +13

    This is all false. SSH is a command what makes your computer run quieter

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

    Perfect video for me as an ongoing systems engineer. Thanks!

  • @sethbingo
    @sethbingo 2 года назад +13

    Just wanted to drop by and say your videos helped me get SEC+ certified. Thanks 👍

  • @midimusicforever
    @midimusicforever 2 года назад +2

    Very important tool that one just uses without stopping to appreciate what a nice thing it is!

  • @mfThump
    @mfThump 2 года назад +13

    watch out man youtube might decide that controlling another device from your computer is encouraging hacking.

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

    There's a specific reason for why compression is added last due to how compression before encryption introduces some recognizable patterns, even though it might even be detrimental to the achievable level of compression. But safety first! :)

  • @eideticex
    @eideticex 2 года назад +8

    Another really nice use of SSH is debugging software, especially interop software where more than one programming language and runtime is used. Got a lot of mileage out of it for debugging some C# interop recently when the existing debuggers for that just weren't giving low enough level of information. Kept an SSH session open monitor the specific portions of the logs involved on another machine but could have just as well done it from the machine itself since SSH works the same locally as it does remotely.

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

      Why do you need ssh for that?

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

      @@kreuner11 basically TeamViewer for command line
      Yeah there are other options but watch or inotify over ssh works very well for this use case (monitoring logs)

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

      @@satibel I mean, for local logs you can use tail -f

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

    Wow, this was really well done. Concise and to the point.

  • @MC2738
    @MC2738 2 года назад +14

    I laughed so hard at 2:38.
    Well done, my friend, well done.

  • @FirstnameLastname-xw5pb
    @FirstnameLastname-xw5pb 2 года назад

    Ay G ion dub I didnt even know what u on till I saw this video thanks dawg u da real one G keep it up and stay up.

  • @tedbear631
    @tedbear631 2 года назад +2

    Thanks as always for this. Love learning about this kind of thing even though I already know a lot about tech didn't know much about SSH except is was secure thanks!!!

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

    thank u, been dealing with some crazy stuff lately this helps

  • @afallingtree9114
    @afallingtree9114 2 года назад +9

    this is the type of information that needs to be taught in school

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

      Haha you wish. They aren't even teaching standard stuff that every single person will have to know. The school system is a failure in everything but the intention behind it.

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

      American schools don't want to mold utilitarians, they want lap dogs.

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

      @@ghosthunter0950 absolutely, but there isn't a whole lot we can realistically do about it

    • @guzzergusher
      @guzzergusher 3 месяца назад +1

      It already is lol

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

    I knew a few use cases for ssh but what it is is often glossed over. Thanks for the video!

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

    You made me discover the -X argument for SSH, thank you, this is amazing

  •  4 месяца назад +1

    Pleasant narration. Keep up the good work. 👌🏻

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

    I usually read stuff about this but i might start checking out more videos like these, look very interesting, Thanks!

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

    a good topic to follow would be to teach what are ssh tunnels and how to use them.
    they are very useful for the management of local network resources and yet most linux users i talked so far never used them.

  • @shaunkerr8721
    @shaunkerr8721 11 месяцев назад +2

    The TCP/UDP water analogy was hilarious.

  • @CLOUD-dy9cr
    @CLOUD-dy9cr 2 года назад +5

    Just learned about SSH but very informative of the in depths, thank you mental outlaw

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

    Those photos and graphics sure take me back!

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

    0:25 ah yes, SHH
    everybody's favorite remote shell protocol

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

    SSH is my favorite function of linux. It's the best way to manage a server rack all the way down to the router.

  • @connivingkhajiit
    @connivingkhajiit 2 года назад +20

    Good evening, Mr. Outlaw. Any chance you could do a video about port forwarding? My suddenly stopped seeding and supposedly my port is not forwarded. I'm too smooth-brained about networking to figure it out properly.

    • @derram0k
      @derram0k 2 года назад +6

      Port forwarding is done on your router and might be called something different depending on what router you have.
      There's a website that breaks it down pretty simply.

    • @whitewolf262
      @whitewolf262 2 года назад +7

      Also: on some ISP supplied routers, it's very difficult or even impossible to port forward. I ended up buying my own equipment because of it.

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

      @@whitewolf262 Yeah, on my sky router you need to pay for static ips and port fotwarding

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

      @@sunglocto Thats insane you would need to pay for static IP's! Next thing to happen is force /30 instead of the standard /24 for the subnet.

    • @connivingkhajiit
      @connivingkhajiit Год назад +1

      @@tworiversfolk923 in the last 10 months i took two networking classes at my university and now i know what that means!

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

    An here I thought I knew a thing or two about SSH. Nope. Learned a ton from this video. Many thanks!

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

    This vid looks nice and inoffensive, sure, but also it's useful and informative in its own right. Thanks for making it.

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

    the matrix background behind the packet breakdown had me rolling

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

    Thanks a lot, and the video has (almost) prefect timing personally for me.
    I was wondering about how secure the secure shell is, and you helped me get rid of most of my worries. 👍🏻
    Though, I'm still unsure if the initial credentials can be intercepted - if an attacker sniffs packets as I perform the very first thing: establishing connection (and, later, providing my credentials).

  • @purdysanchez
    @purdysanchez 4 месяца назад

    This was a great video. You should do more of these. Maybe one about how asymmetric encryption is used to negotiate the connection and exchange the symmetric key?

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

    And again, thank you for educating us, normies, my humble king. Love you 💕

  • @timothyt.82
    @timothyt.82 2 года назад

    It's great to have you back!

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

    That TCP UDP picture was spot on. Funny lol

  • @Thomas-41234
    @Thomas-41234 2 года назад +2

    In 1997 I had a direct ethernet connection from my apartment to the university network. I used some aplication (can't remember the name) to get the X from the university unix computers to my linux computer. It was all unsecure telnet connections. We had hundreds of students with their computers sharing pics, music and whatever in their unsecure FTP connections. Damn, those were crazy times, haha.

  • @PunisherSM
    @PunisherSM 29 дней назад

    Using this video a couple years later to educate myself so I can remote in to my own PC to access a local AI model I installed through terminal.

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

    please do more of these style of this videos along with your normal stuff!!

  • @isbestlizard
    @isbestlizard 2 года назад +2

    You could have mentioned scp which allows file copies between hosts via ssh, and is super useful for those times you want to move files but can't be arsed setting up nfs.

    • @isbestlizard
      @isbestlizard 2 года назад +2

      Oooooh and authorized_keys versus password authentication, once you have a key you can zip between loads of hosts without ever having to type your password again :D

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

    Fantastic video! It was easy to follow and didn't' bore me at any point.

  • @aslanbekx
    @aslanbekx Месяц назад +1

    The first time I heard about ssh I remember saying: Surely I should abuse it

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

    Finally, useful video! This is better than biased rant like what Kenny usually did, tbh

  • @tim000x3
    @tim000x3 2 года назад +6

    0:30 SHH graphic

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

    Very nice explanation. As a linux ssh newbie I found your explanation very informative. I followed ya on Odysee just in case the algorithym gets ya. . .

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

    Thanks for the video Mr. Outlaw! Have a good one 😃

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

    Outstanding video, great work Mental sir

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

    lol love the memes, I'm subscribing

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

    Thx. Its go to understand how what your doing works

  • @CesarSantoyo-il4ql
    @CesarSantoyo-il4ql 3 месяца назад

    Bro explained this better than all my instructors 💀

  • @Corswain
    @Corswain 11 дней назад

    That image about TCP vs UDP is absolute gold hahahaha.

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

    I recently just installed bitvise to host an ssh server for file sharing, works great, I recommend that if you Wana host ssh on windows

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

    Damn how do you put out so many vids. My fave channel!

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

    I was looking for a good explanation of the protocol yesterday, get out of my walls

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

    I've used Linux since more than 12 years ago, however I've never read how SSH works. Thank you for making this!

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

    Great explanation and illustration.

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

    "Sniffing it.". Chef's kiss.😁

  • @abdellahbadaoui4042
    @abdellahbadaoui4042 3 месяца назад

    "back in the early 90s", proceeds to show a shot from the movie juice, love it.

  • @theITGuy-no3nt
    @theITGuy-no3nt 2 года назад

    Wow. This is the perfect SSH primer. -- a Grey Beard who would have picked you up on the tiniest mistake, but found none

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

    Well-presented and engaging.

  • @Jazztache
    @Jazztache 2 года назад +2

    Hey Mental Outlaw!
    What's your opinion on Godot? I'm jumping from Unity to Godot because it's free and open software and it runs better on Linux than Unity.
    Thanks!

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

    Do one on the Nym network. They use sphinx packets like the lightening network, reorder the packets, use decoy traffic and adjustable timing delay to defeat timing correlation

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

    I know I can read how X11 works on Wikipedia, but having Mental Outlaw explain it would be way cooler

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

    SSH is amazing, especially ssh tunneling. Saves so much headache.

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

    Nice job explaining this

  • @Paul-oi2wz
    @Paul-oi2wz 2 года назад

    What I hoped to learn (which I can't find anywhere) is how do both parties exchange keys without outsiders listening in which will allow to however listening in on the key exchanges to decrypt everything.

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

    Came to learn and left with mental SSHing into our Heart's.

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

    This video is outstanding and packed with knowledge, but is no one going to talk about the Nagisa cameo? MentalOutlaw trutly is a man of culture.

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

    I'd love to know more about how terminals/shells work on Linux in general, remote and local.

  • @wisteela
    @wisteela 4 месяца назад

    Very informative

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

    Do you have a video explaining what proxies do/are and the different types?

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

    Great explanation! Thanks

  • @MrJegerjeg
    @MrJegerjeg Месяц назад

    One of my favorite possibilities with SSH is the ability to create SOCKS proxies.

  • @es1090
    @es1090 4 месяца назад

    Nicely put, thanks.

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

    Nice video!

  • @vladislavkaras491
    @vladislavkaras491 9 месяцев назад

    Thanks for the video!

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

    I really like your videos

  • @semioval
    @semioval 2 года назад +2

    Can i download the full series of "the sopranos"?

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

    Great video. Just wanted to say that websockets also use TCP

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

    Hey did you create that table at 6:14 yourself? Or did you get it from somewhere

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

    Very good video man, thanks

  • @elismith6048
    @elismith6048 4 месяца назад

    thank you for the video its really good could you make a video talking about ssh tunneling?

  • @Godmil
    @Godmil 3 месяца назад +1

    How do the client and server know how to use the same encryption/decryption methods? Is that info sent, and what stops a man-in-the-middle getting that info then intercepting packets unencrypting them and then reencrypting them? 😕

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

    Doesn't terminal multiplexing refer to having a single shell instance spawn a bunch of different shells? Example I'm used to is making a single SSH connection to a remote and then opening screen or tmux on the remote

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

    Liked, comment, but my friends would give me that annoyed face if i shared. Still. no matter how many times i study and learn about SSH, i still come back to these videos and learn it again. *mainly because i always forget*

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

    3:15 this dude is correct. I be watching all my neighbors receive their packages. Wondering is that the mother load to take or some nail polish

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

    Could you possibly do a video on setting up X11 remote login? Akin to what we see in universities where you have a dumb graphical login page and it starts and connects to a session running on the server.

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

    I never know if I should expect some useful tech info, or how to cook chicken...
    Happy either way. 🖥+🔑+🖥 = ⚖