SSH Jump Server Access and How To Pivot Using OpenVPN & Proxychains

  Рет қаралды 38,258

Lawrence Systems

Lawrence Systems

Күн бұрын

Connecting With Us
---------------------------------------------------
+ Hire Us For A Project: lawrencesystems.com/hire-us/
+ Tom Twitter 🐦 / tomlawrencetech
+ Our Web Site www.lawrencesystems.com/
+ Our Forums forums.lawrencesystems.com/
+ Instagram / lawrencesystems
+ Facebook / lawrencesystems
+ GitHub github.com/lawrencesystems/
+ Discord / discord
Lawrence Systems Shirts and Swag
---------------------------------------------------
►👕 lawrence.video/swag
AFFILIATES & REFERRAL LINKS
---------------------------------------------------
Amazon Affiliate Store
🛒 www.amazon.com/shop/lawrences...
UniFi Affiliate Link
🛒 store.ui.com?a_aid=LTS
All Of Our Affiliates that help us out and can get you discounts!
🛒 lawrencesystems.com/partners-...
Gear we use on Kit
🛒 kit.co/lawrencesystems
Use OfferCode LTSERVICES to get 5% off your order at
🛒 lawrence.video/techsupplydirect
Digital Ocean Offer Code
🛒 m.do.co/c/85de8d181725
HostiFi UniFi Cloud Hosting Service
🛒 hostifi.net/?via=lawrencesystems
Protect you privacy with a VPN from Private Internet Access
🛒 www.privateinternetaccess.com...
Patreon
💰 / lawrencesystems
⏱️ Timestamps and Reference Videos 🎥 below ⬇️
0:00 Intro
1:36 SSH Jump Box Network Layout
1:59 Why use an SSH Jump Box
5:49 Managing user keys to Jump Box
10:50 How To Pivot Using The Jumpbox with OpenVPN & Proxychains
20:00 Remote VPN Challenges OpenVPN & Proxychains
Linux Proxychains Using SSH & SOCKS Proxy For Easy Remote Management & Testing
• Linux Proxychains Usin...
How To Generate Ed25519 SSH Keys, Install Them, and Configure Secure Passwordless Authentication
• How To Generate Ed2551...
Getting Started With TMUX
• Getting Started With TMUX
Getting Started With The Open Source & Free Diagram tool Diagrams.NET
• Getting Started With T...

Пікірлер: 33
@Sinnersmight
@Sinnersmight 3 жыл бұрын
I have absorbed like 3 years worth of your videos these past few weeks and they have been fascinating. I love your content and keep up the great work! I look forward to being part of this community :) This video specifically has been spot on what I have been looking for too, so I really appreciate the variety of content you provide. I'm getting ready to setup my homelab environment and am very excited! I wish this got me hooked 10+ years ago instead of gaming, but this was much more boring then :P but now im so engrossed into the topic!!
@JRis44
@JRis44 3 жыл бұрын
This was awsome. I have a whole lot of stuff to learn. Thank you for the education man!
@IEnjoyCreatingVideos
@IEnjoyCreatingVideos 3 жыл бұрын
Good video Tom! Thanks for sharing it with us!💖👌👍😎JP
@gezb99
@gezb99 3 жыл бұрын
Tom Great Video - helped me alot - thanks for taking the time - ;O)
@n3kton
@n3kton 3 жыл бұрын
nice video as usual, i would like to add two things: a) more secure would to let the user‘s forward their ssh agent through the jumpbox and use their individual keys to authenticate to the servers (they are allowed for). distribution of ssh public keys for the allowed users of the machine could easily be done with some scripts and a (even more secure) ssh management server. this you can manage the access per user for every machine b) i guess you would want a backup jumpbox
@chrisbleakley1444
@chrisbleakley1444 3 жыл бұрын
Great Video Tom, very useful information as usual! You always seem to be ahead of the curve. I'm sure you already know this but if you are just VPNing from Point to Point wouldn't it be better to use a /30 subnet to keep things tidy, so if your labtop is '192.168.68.2' and the VPN link is '192.168.68.9' they are treated as separate subnets therefore you shouldn't have any issues routing. Keep up the fab work.
@TWFsecurity
@TWFsecurity 3 жыл бұрын
Very helpful video, i appreciate your effort Thanks
@ServerAcademy
@ServerAcademy 3 жыл бұрын
Another great video!
@xephael3485
@xephael3485 3 жыл бұрын
Great content on jumpboxes/stations
@hikingpete
@hikingpete 3 жыл бұрын
Thanks Tom, I enjoyed hearing about how you use a jump server. I would recommend that you have a look at SSH certificate authentication, as it solves half the problem in a different way. Both host keys and client keys can be signed by a master key, and hosts and clients can be configured to trust this signature. There are provisions for expiring keys and so much more. I think the jump box is still a handy tool, but I think I'd still prefer to start from a certificate based system.
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 3 жыл бұрын
I debated about making a second video about using SSH certificate management, it's not something I use much and the added complexity creates some drawbacks.
@kosmonautofficial296
@kosmonautofficial296 3 жыл бұрын
amazing video again thanks!
@xXsoulshockerXx
@xXsoulshockerXx 3 жыл бұрын
I knew how to setup ssh keys and authentication, but I didn't know you could do this. In fact, just about a few months ago I didn't know ssh config file was a thing. Now this is cool. I have about 5 Pi's at home with a debian webserver and one digital ocean VPS. Be cool to have one channel of communication.
@UntouchedWagons
@UntouchedWagons 3 жыл бұрын
So with a jump server I'd have to log in twice? Once into the jump server then ssh again into the computer?
@mattmat5648
@mattmat5648 3 жыл бұрын
The question I would have is if everyone is authenticated to the jump box and traffic goes from box to server, does it do a good job logging user actions once they are Authenticated?
@andre32396
@andre32396 3 жыл бұрын
Great video! Have you ever thought of using something like a smartcard or hsm to store securely the private ssh key from the jumpbox? That way, you would eliminate the risk of someone copying the jumpbox's private key.
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 3 жыл бұрын
There's actually quite a few different options for securing keys but for brevity of the video I did not cover all of them. Maybe I'll make another video on that topic. ;)
@WarpedFlayme
@WarpedFlayme 3 жыл бұрын
@@LAWRENCESYSTEMS Please do. My first thought when you suggested that you could just remove a user's private key from the Jumpbox's authorized_keys file was that anyone with access at any time to the jump server could just copy its private keys and bypass the Jumpbox. Obviously this could be mitigated with firewall and host-based SSH rules, but a concern nonetheless, right?
@dduncane
@dduncane 3 жыл бұрын
What about using Identity Management Software (like FreeIPA for exemple) to manage Users & Keys? Keys are stored on the IDM and managed there. A user quits, just delete his account on the IDM, and bam, he can't logon anymore and his key don't work anymore. Key compromised, revoked it on the IDM, and replace it with the new one, and bam, key has been replaced on every server on your domain.
@jrr851
@jrr851 3 жыл бұрын
SSH and Tunnels are the duct tape of networking. You can glue together so many solutions with them. Not just for remote command line!
@LAWRENCESYSTEMS
@LAWRENCESYSTEMS 3 жыл бұрын
Yup I've covered tunneling and piping things over SSH quite a few different ways on this channel. ;)
@dreagnore
@dreagnore 3 жыл бұрын
It would be cool to know how would you handle if you get locked out or the jump server goes down. How to mitigate that.
@gezb99
@gezb99 3 жыл бұрын
keep a mirror I guess
@MDTechTutorials
@MDTechTutorials 3 жыл бұрын
wow nice video.
@danieleperera6788
@danieleperera6788 3 жыл бұрын
I remember that you have a dynamic IP at your home and how are you getting VPN access to your home server when you have a dynamic IP. Can you please do a video on this topic?
@UntouchedWagons
@UntouchedWagons 3 жыл бұрын
He's probably using Dynamic DNS with something like ddclient and a service like cloudflare or no-ip.
@Rickety3263
@Rickety3263 3 жыл бұрын
I see what you’re trying to do. I learned what a jump box is today. Why not configure an LDAP server like FreeIPA to manage users, groups, objects and permissions? I understand FreeIPA also manages ssh keys, too.
@SB-qm5wg
@SB-qm5wg 3 жыл бұрын
I don't use proxychains, I usually just set up a temp ssh tunnel for like 443 etc.. ssh -g -N -f -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -L 22443::443 user@jumpbox
@SB-qm5wg
@SB-qm5wg 3 жыл бұрын
It's how we patch servers in closed networks.
@MarcelDarvas
@MarcelDarvas 3 жыл бұрын
So 1Password Secrets Automation could be considered a JumpBox?
@berndeckenfels
@berndeckenfels 3 жыл бұрын
If every user has access to the same no user, this user should not have read access to the authorization keys. With sudo you can pivot to a different outgoing user. But that does not allow to see the actual idendity on the target servers..
@raul230285
@raul230285 3 жыл бұрын
Use Wireguard for Example
Getting Started With TMUX
24:07
Lawrence Systems
Рет қаралды 24 М.
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 78 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 23 МЛН
How to Configure Traffic Monitoring with ntopng on pfsense
16:18
Lawrence Systems
Рет қаралды 115 М.
TLS Handshake - EVERYTHING that happens when you visit an HTTPS website
27:59
Practical Networking
Рет қаралды 109 М.
How to create a valid self signed SSL Certificate?
25:01
Christian Lempa
Рет қаралды 344 М.
Setup Synology OpenVPN Server (easy, secure, remote access)
24:24
Tutorial: pfsense and pfBlockerNG Version 3
27:54
Lawrence Systems
Рет қаралды 211 М.
HAProxy-WI: Run Lots Of Public Services On Your Home Server
25:24
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
😱Хакер взломал зашифрованный ноутбук.
0:54
Последний Оплот Безопасности
Рет қаралды 976 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18