Hak5 - SSH Forwarding: Local vs Remote with examples, Hak5 1113 part1

Поделиться
HTML-код
  • Опубликовано: 14 май 2012
  • Hak5 -- Cyber Security Education, Inspiration, News & Community since 2005:
    ____________________________________________
    This time on the show, Local and Remote forwarding with SSH, Persistent connections in Linux with AutoSSH, Windows tunnels that don't quit with a GUI front-end for Plink and a whole lot of technolust. All that and more, this time on Hak5!
    ____________________________________________
    Founded in 2005, Hak5's mission is to advance the InfoSec industry. We do this through our award winning educational podcasts, leading pentest gear, and inclusive community - where all hackers belong.
  • РазвлеченияРазвлечения

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

  • @TheAfreitag
    @TheAfreitag 3 года назад +20

    8 years later and this is still one of the best resources I've found to understand this concept. Great job !

  • @vonniehudson
    @vonniehudson 5 лет назад +23

    I really struggled to understand this and now I’m finally starting to grasp it. Not sure why this blows my mind so much, almost feel like the confusion comes from overthinking it.

  • @crabsynth3480
    @crabsynth3480 5 лет назад +8

    I can't believe I still run into great shows on RUclips which have existed for decades yet I had no idea about their existence.... ... Kudos to entire team.

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

    Great stuff. All too often you get "how to" specifics or "how it works" abstractly. Thanks for providing both at once.

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

    Awesome video. Informative, well-produced, well-edited, useful and provides practical information

  • @redwiz1973
    @redwiz1973 8 лет назад +18

    lo is not "local", is loopback

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

    Love you guys so much ❤ shannon darren digital OGs

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

    Thank you! I still send this video to friends who are trying to understand SSH Tunneling. Very well explained. Thank you :)

  • @gana0000000000
    @gana0000000000 8 лет назад

    Great job guys. I loved it

  • @g_mb
    @g_mb 11 лет назад

    Great video ! Thanks !

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

    Very clear explanation. Thank you!!

  • @lucifer8163
    @lucifer8163 7 лет назад

    I'm a fan of your work. keep going

  • @mikeb5745
    @mikeb5745 11 лет назад +1

    Great example! Maybe it's my Ubuntu 10.10, but it was my experience that the configuration you demonstrated for remote forwarding only allows forwarding from the server "localhost". To configure to allow forwarding of any host on the network connected to the evil server, the /etc/ssh/ssh_config file had to be modified with a line added:
    GatewayPorts clientspecified
    and, the host IP had to be specified in the ssh command like so:
    ssh -R evil-server:8080:localhost:80 user@evil-server

  • @Lorv0
    @Lorv0 12 лет назад

    awesome stuff : )

  • @Oscarrudnas
    @Oscarrudnas 12 лет назад

    Have something happend to the quality on RUclips? This is so good!

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

    Hey folks, nice vid. Am I wrong in saying that the 'localhost' refers to the laptop when it's -L and the server when it's -R?

  • @inanme
    @inanme 12 лет назад

    Darren Hi,
    Could you pls make a video about chaining the ssh tunnels? for instance when you want to access to machine in a LAN only accessible via jump box.

  • @GhostofFranky
    @GhostofFranky 6 лет назад

    Now if someone connected to that vml server through port 5901 why would it not redirect back to your laptop? Since those two ports appear to be bound together. If You could help me clear that up I would greatly appreciate it.

  • @NicholasMaietta
    @NicholasMaietta 7 лет назад +3

    There are 2 things never discussed that are required:
    1) You need to have a publicly accessible server, such as a hosting account with SSH enabled.
    2) The ssh server must have GatewayFowardering turned on in the SSH server settings, which may not be possible on some hosting providers.

  • @john_rambo_27098
    @john_rambo_27098 6 лет назад

    nice job

  • @inanme
    @inanme 12 лет назад

    yes that was awesome...

  • @cesaralejandroibarraquirar3566
    @cesaralejandroibarraquirar3566 6 лет назад

    Any tip o risk of letting some service exposed to certain port in a remote server that it is accessible to everyone on that port?

  • @DarrenKitchen
    @DarrenKitchen 12 лет назад +2

    about 3 weeks ago. helps that we upload super high res too ;)

  • @passnorbu
    @passnorbu 11 лет назад +1

    does it mean that GatewayPorts "clientspecified" is port 8080 ?

  • @pilovali
    @pilovali 12 лет назад

    Darren, i've got a question: I use PuTTY on Windows to use SSH Forwarding, but if i'm using the remote option. If I run apache for Windows on the client (192.168.2.123:80), and forward it to the Linux server, i can only access it on the linux-box (localhost:80), and not outside my network, and i've open the ports of the linux-box. Can you help?

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

    Greate video. But there is a common mistake that happens in most of the SSH tuitors and make the second sample confusing. The port opened on local host and remote host are the same-5901. So it is hard to understand the exact meaning of the port1:IP:port2.

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

    Can this be used as a "manual" way of doing what Metasploit's autoroute does?

  • @80robina
    @80robina Год назад

    Ssh tunneling is awesome

  • @AjaySharma-jv6qn
    @AjaySharma-jv6qn 6 лет назад

    Funny Techies.. Keep Posted...:)

  • @korelion14
    @korelion14 12 лет назад

    nice one :D
    But what can I do when I´m using a Wirelles-router and it only shows my network ip ex. 10.0.0.1...
    Is my WAN important or not ?
    Please help :(

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

    It could be even easier to understand if the ip address / computer names are also written down in the picture. But this video did help me undertand the use of -L, which aonther video had me confused.

  • @HPDStudios
    @HPDStudios 6 лет назад

    I just cannot keep track of where you type the command... It's obviously clear in your all's heads but in theory you can type the command on the laptop or on the server and I can't tell which numbers align with with side of things. I'm trying to get a remote debugger setup for node.js scripts and I just can't seem to get the job done. Insights would be helpful

  • @EnitinEnitin
    @EnitinEnitin 6 лет назад

    Do you have to change some config files for this to work? Probably but you are not saying anything about it.

  • @J2EEyoung
    @J2EEyoung 12 лет назад

    thanks for showing that i was wondering local vs remote from the first ssh proxy episode

  • @himelsarkar137
    @himelsarkar137 6 лет назад

    Is it possiable in win rat ?

  • @issararab7845
    @issararab7845 6 лет назад

    can we describe more what is user@host? can it be the public ip address of the host? how do we set the "user" name ? and another thing is the password that you typed when you run the command. How do we set those?

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

    Does it only works with tcp?

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

    still not clear on the reverse SSH.. because both the connection looks same.. may be if we can explain with an better example may help with cloud involved

  • @ThomasMcLoughlinNASA
    @ThomasMcLoughlinNASA 12 лет назад

    You could also use OpenVPN to setup a secure local network between you and your server(s)

  • @Jisamaniac
    @Jisamaniac 12 лет назад

    Snubs "A firewall, oh no! Just like prison. You can get in, but you can't get out." lol

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

    👍👍

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

    Very nice explanation but I dont understand something, why is the girl there? IS it the 5318008?

  • @blackcomputers
    @blackcomputers 12 лет назад

    Why is 'Snubs' on Hak5?

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

    I still do not understand the SSH port forwardig syntax? Whats up with this 80:localhost:8080?
    Is there more clearer way to understand this syntax? I mean what the hell ssh developers! XD

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

      As I remember the main clue for remembering port forwarding is to understand that MyPort:RemotePort and this rule/convention almost everywhere applies in all Linux utilities.
      And let's not forget about the manual :)

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

      @@maratgainutdinov9722 Thankyou for your reply. I read the manual couple of times (skimmed) and now I understand the syntax. I prefer the more explicit version like localhost:80:localhost:80 for source and destination sockets. Thankyou for being kind and patient. (Y) Lets learn something new now. Cheers

  • @chunkMunky123
    @chunkMunky123 12 лет назад

    Damn girl! You can sing!

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

    Does Shannon still here?

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

    Subtitles please?
    How about if company network administrator has blocked port 22 on company side?

  • @Jordan-hz1wr
    @Jordan-hz1wr 2 года назад

    Unbenounced to him the Log4j vulnerability awaited patiently in the shadows.

  • @deepakevgoogle
    @deepakevgoogle 6 лет назад

    explanation of the concept was very good . Could have avoided those unwanted animations .

  • @DarrenKitchen
    @DarrenKitchen 12 лет назад

    Install gnome or your WM of choice ;)

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

    ssh://

  • @b213videoz
    @b213videoz 8 лет назад +35

    Cut the Britny Spears cheap pop garbage talk - do the explanation, you can di it really well

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

    I love shannon

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

    We all know what that firewall looks like

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

    sshd??? what is tyhe best free service for debian?, sorry newb here

  • @samrichardson2842
    @samrichardson2842 7 лет назад

    My ISP Blocking All Ports.What to do ??

    • @jonathanemery9557
      @jonathanemery9557 7 лет назад +2

      Sam Rich Get A New ISP xD
      But On A Serious Note Get A VPN

    • @ironrose6
      @ironrose6 6 лет назад

      Sam Richardson Use ngrok or pagekite. They're astonishingly good at bypassing that kind of nonsense.

  • @5445252
    @5445252 12 лет назад

    I allays love staying up till 12 just to watch your guys vids. Any body ells agree?

  • @maxpolaris99
    @maxpolaris99 6 лет назад

    Very ambiguous. More network details needed like actual network ip addresses.

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

    Guys you make really good videos, but please try to stick to the point and minimize side noise, which you have a ton of, in your videos. No one has enough time to wait through all the unnecessary stuff to get to the actual technical content, they were here for, in the first place.

  • @Jisamaniac
    @Jisamaniac 12 лет назад

    Let's be adult children.

  • @lakshyak96
    @lakshyak96 12 лет назад

    first !!!

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

    Lot of wasting time, not a behaviour or techie.. Long time to get to point, finally got to point and that too hovering a circle.

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

    Dislike, why dont you add some more info on dynamic like you did for rest of two. :(

  • @shateela.chowdhury3805
    @shateela.chowdhury3805 9 лет назад +21

    That girl disturb me much! plz stop talking

    • @J2897Tutorials
      @J2897Tutorials 9 лет назад +2

      Shateel Chowdhury Jealousy gets you no where.

    • @ifoundalotgoodcast
      @ifoundalotgoodcast 7 лет назад +2

      The girl actually make normal people easy to understand tec. things.

    • @sravanimandava4663
      @sravanimandava4663 7 лет назад +2

      Yup thats true but not during the time when he is explaining. Its disturbing and annoying. May be they have to rehearse a little more not to talk in between.

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

    marry me shanon ......plz........plz.....plz

  • @user-gj3hb7qz7t
    @user-gj3hb7qz7t Год назад

    confusing stuff, talk a lots