The OpenSSH Client Config File: Simplify your SSH Connections
HTML-код
- Опубликовано: 6 июн 2024
- The OpenSSH client config file is a very powerful feature, that too many people ignore. You can use the client config file to simplify your SSH connections, by including preset options per host. In this video, I'll go over the basics of this config file.
Brand LPI Linux Essentials Course Available
Now just $44.99 for a limited time! ➜ learnlinux.link/lpi-course
➜ learnlinux.link/lpi-course
Check out the Linux Shop
In the official shop, you'll find Shirts, hats, stickers, bags and more!
➜ merch.learnlinux.tv
5% discount on LPI exam vouchers
After you finish Jay's new course, get 5% off an LPI exam voucher here:
➜ learnlinux.link/lpi-voucher
Become a Patron
Show your support for Learn Linux TV on Patreon and get access to exclusive perks!
➜ learnlinux.link/patron
Become a Channel Member
Show your support for Learn Linux TV here on RUclips and get access to exclusive perks!
➜ learnlinux.link/member
Mastering Ubuntu Server: 4th Edition
Jay's latest book covers everything you need to know in order to master Ubuntu Server. It's available here:
➜ ubuntuserverbook.com
Linux Gear and Kits
Check out Jay's choice of hardware products, audio/video equipment, and more.
➜ learnlinux.link/amazon
Grab an awesome Pi-powered KVM
Support Learn Linux TV and grab yourself a TinyPilot KVM here:
➜ learnlinux.link/tinypilot
Note: Royalties and/or commission is earned from each of the above links
Time codes:
00:00 - Intro
02:14 - Scenario overview
07:18 - Building the OpenSSH client config file
Full Courses from Learn Linux TV
• Linux Essentials Certification Workshop ➜ learnlinux.link/lpi-course
• Linux Crash Course series ➜ linux.video/cc
• Learn how to use tmux ➜ linux.video/tmux
• Learn how to use vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE Cluster Full Course ➜ linux.video/pve
• Learn Ansible ➜ linux.video/ansible
Linux-related Podcasts
• Enterprise Linux Security ➜ enterpriselinuxsecurity.show
• The Homelab Show ➜ thehomelab.show
Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
#SSH #OpenSSH #Linux - Наука
Your videos are so much easy to follow and they are super organized. You are a legend.
Jay, I truly appreciate these little tidbits of advice. They're great for new and novice Linux users. I've found that as I've gotten more comfortable with the command line, I notice that I've also formed some poor habits. These sorts of tips are a good reminder that almost everything has a better way to do it.
Over 200,000 subscribers in the meantime! Congratulations! Wishing you even more to come, your content is so much worth it! Did the numbers explode in the last months/year? I remember subscribing somewhere around the 40,000 mark... However, all the best and thank you!
This channel is just amazing! Thank you so much Jay for providing such great content! It's a life saver!
You're great man..I'm glad you chose to do this full time.
I'm watching this for the second time. And now I understand what this config file is used for. Thank you Jay. And this Ubuntu book of yours is so very, very good.
this geezer is awesome, thank you! your content recently has been invaluable!
7 years a linux user and i never knew about this - i wrote ssh scripts to simply, don't judge lol. Tested with scp and ssh-copy-id. perfect! Look forward to reading your book that i got for my birthday :)
Great information Jay. Thank you for all you do.
Dude you are not only THE BEST linux learning source I have found, but you are a huge RPG fan clearly ,and I would love to speak with you one day! we have a ton in common! Thanks for what you
do!
Thanks for the video. Look forward to the next steps!
On the one hand, this video is extremely easy to follow, on the other hand, I was expecting more than Hostname, User and Port in the config.
Like always this is the best channel when learned new things about Linux!. Ps. How is Mycroft doing controlling the world? 😉
Helpful video sir, this will definitely help in improve my productivity as a network quality engineer 👨💻
Very usefull tip! Thank you very much! Add to this ssh keys on server and here we go ;))
Thanks Jay for the informative Video.
Love it! I already create my config file in my laptop to access my mpg in my home easier. Do you know if there is an option for tunneling port automatically with this commands? (-L port:localhost:port)
Great video and well done. I started using ssh config last year to simplify my life lol.
Thanks for this great tip and info, have a great day
I love your videos as they are more in deep and more knowledgeable than anywhere. I have watched mostly all OPENssh videos... I am going to set up jumpbox VM in proxmox. How do we move ssh key so I can use in other PC if I ever destroy that VM or change pc all together? How do we back up ssh key?
Thanks really helped me very much
This is great. Thanks Jay
Thank you - this is so helpful!!
ssh command line auto completion works by reading from the config file. So getting into your acme server is as easy as:
ssh a[tab]
👍👍👍👍👍Dear Jay, THANK YOU!
Awesome! Use "server*" to match server1... how abt those different ip addresses? Perhaps we get to see them in the follow-up video.
some great tips in here thank you.
Fantastic! Thank you
Thank you sir, saved me some time.
Good guide, thanks.
I normally use Fish aliases or Fish command history to simplify SSH commands but will now use this method instead. Thanks.
Thank you Jay. Oh, skynet is from the terminator, acme I'm not sure but wiley coyote somehow comes to mind.
very useful, thanks
Hi Jay, you think you can do a Nagios tutorial, thank you very much I have been following you for a long time. Greetings from Peru.
This is great! Thanks for the video!
I’m not seeing where you saved the config file? Or what the config file name is. Could you please clarify?
It's called config and it's in the .ssh folder off the /home/jay directory. The nano command (nano is the editor he uses) he gives shows this
Yes. Already subscribed.
Hi, am I correct in thinking that IdentityFile should point to your private key? Does this need to be an absolute path or is relative fine? I ask because my desktop doesn't seem to use the key when I use the alias. Help is appreciated.
Good information in this video.
I find that uppercase U and P for user and port is not required, at least in Ubuntu. I've always used lowercase without a problem. I just checked Host and Hostname and it's the same. Also, I use some end of life equipment that require the use of obsolete protocols that you will cover next. Very useful information, here.
Shinra is not just the evil corporation in Final Fantasy VII, it's actually the name of an ancient kingdom of Korea: "Shilla".
Thanks Jay!
Great video!
the configuration file is very similar to the configuration of the redial application. I recommend it for ordering connections
Thank you!
Loved it.
Is there a way to apply ssh key when connecting because without it, it asks password all the time
Just tumbled on this video and was excited to try it. Unfortunately, the 'config' file didn't work for me. I tried Arch Linux, Ubuntu, and Windows. None of them recognized any entries I added to $HOME/.ssh/config.
Great video. thanks for your efforts. i use alot of your videos as a refrence when creating labs for my students. thanks again :)
And what about the SSH connections to Github or other places?
The known_hosts is filled with hashes and there's no way to recognize them (If I need to remove some connections from there).
@Terminalforlife (LL) That's what I meant.
When I set up keys for the Github / Gitlab -connection, the corresponding host is added to known_hosts, but since it is hashed, I cannot recognize it from all the other hashed hosts.
I know the hashes are an intended security feature, but it makes maintaining the known_hosts more difficult since I can't clearly see what hosts I have there.
I have an old Linux installation on a laptop that I used for some dev stuff and there's no way I can remember all those hosts.
Thank you. :D
added l.sh (or lh.sh might be a more logical name)
cat config | grep "Host "
to only show the hosts
Ya man. This does not work. Details are missing. Refuses connections have server install on one vm and client on another. Use syntax and conventions. Connection does not work at all. Docs on web detail same procedure but still fails to connect. What important details are you and all other resources omitting?
great video thanks. I would have used the username Johnconnor on the second server.
IdentifyFile!!!
I wonder how many networks/servers have a skynet name on them, then I wonder if they are all communicating...then I wonder....oh shit........
C'mon. We all know Shinra is from Chrono Trigger. ... :D
I'm too lazy to look, but I assume scp and friends pick this up, too?
FFIV nerd ova here 2:29
shinra FFVII
don't connect to skynet :D
Null
-----------------------------------------
|. BLUE OYSTER CULT |
|. 🎵 THEN CAME THE 🎵 |
|. 🎵LAST DAYS OF 🎵 |
|. 🎵MAY 🎵 I
------------------------------------------