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
  • НаукаНаука

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

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

    Your videos are so much easy to follow and they are super organized. You are a legend.

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

    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.

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

    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!

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

    This channel is just amazing! Thank you so much Jay for providing such great content! It's a life saver!

  • @unstoppable-ar3292
    @unstoppable-ar3292 2 года назад

    You're great man..I'm glad you chose to do this full time.

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

    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.

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

    this geezer is awesome, thank you! your content recently has been invaluable!

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

    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 :)

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

    Great information Jay. Thank you for all you do.

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

    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!

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

    Thanks for the video. Look forward to the next steps!

  • @katnax3059
    @katnax3059 5 месяцев назад

    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.

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

    Like always this is the best channel when learned new things about Linux!. Ps. How is Mycroft doing controlling the world? 😉

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

    Helpful video sir, this will definitely help in improve my productivity as a network quality engineer 👨‍💻

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

    Very usefull tip! Thank you very much! Add to this ssh keys on server and here we go ;))

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

    Thanks Jay for the informative Video.

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

    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)

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

    Great video and well done. I started using ssh config last year to simplify my life lol.

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

    Thanks for this great tip and info, have a great day

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

    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?

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

    Thanks really helped me very much

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

    This is great. Thanks Jay

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

    Thank you - this is so helpful!!

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

    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]

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

    👍👍👍👍👍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.

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

    some great tips in here thank you.

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

    Fantastic! Thank you

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

    Thank you sir, saved me some time.

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

    Good guide, thanks.

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

    I normally use Fish aliases or Fish command history to simplify SSH commands but will now use this method instead. Thanks.

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

    Thank you Jay. Oh, skynet is from the terminator, acme I'm not sure but wiley coyote somehow comes to mind.

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

    very useful, thanks

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

    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.

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

    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?

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

      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

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

    Yes. Already subscribed.

  • @josh-rx6ly
    @josh-rx6ly Год назад

    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.

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

    Good information in this video.

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

    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.

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

    Shinra is not just the evil corporation in Final Fantasy VII, it's actually the name of an ancient kingdom of Korea: "Shilla".

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

    Thanks Jay!

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

    Great video!

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

    the configuration file is very similar to the configuration of the redial application. I recommend it for ordering connections

  • @aba-nascu
    @aba-nascu 2 года назад

    Thank you!

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

    Loved it.

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

    Is there a way to apply ssh key when connecting because without it, it asks password all the time

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

    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.

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

    Great video. thanks for your efforts. i use alot of your videos as a refrence when creating labs for my students. thanks again :)

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

    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).

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

      @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.

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

    Thank you. :D

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

    added l.sh (or lh.sh might be a more logical name)
    cat config | grep "Host "
    to only show the hosts

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

    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?

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

    great video thanks. I would have used the username Johnconnor on the second server.

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

    IdentifyFile!!!

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

    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........

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

    C'mon. We all know Shinra is from Chrono Trigger. ... :D

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

    I'm too lazy to look, but I assume scp and friends pick this up, too?

  • @rebycfa5673
    @rebycfa5673 23 дня назад

    FFIV nerd ova here 2:29

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

    shinra FFVII

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

    don't connect to skynet :D

  • @Shawshanck
    @Shawshanck 10 месяцев назад

    Null

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

    -----------------------------------------
    |. BLUE OYSTER CULT |
    |. 🎵 THEN CAME THE 🎵 |
    |. 🎵LAST DAYS OF 🎵 |
    |. 🎵MAY 🎵 I
    ------------------------------------------