Your videos should be a template for all other teachable videos. It was clear, good pace, easy to follow and understand. And you explained things perfectly! Thank you.
Ohh my!! - This content is better than most paid training I have gotten so far. I signed up for your patron to give you much needed credit for your great work. Looking forward to browsing through all your content :)
this is just a 10/10 video, I understand the concepts of public/private keys but this really helped me understand how to make and use them in the real world.
Awesome tutorial! You know what, I watched a lot videos about ssh keys to understand this topic but this is first in which someone showed that we don't copy the whole key file but the content of key file to the file "authorized_keys" . Now I understand :)
For those who can't access the Ubuntu server instances on Virtual Box via ssh. Settings > Network Adapter 1: Select Host-Only-Adapter (If you don't have any available name for Host-only Adapter, first go to File Menu > Host Network Manager and Create) Adapter 2: NAT
Thank you so much, Jay, great video and work! very helpfull!! BTW, your english is so beautiful, no any accent, your video quality is also clear and perfect, zoom control is very good, we can see, you definittely spent lot of time and energy to make this video, thanks again!
Good info, but what you don´t mention is that before you can copy over the pub ssh key for the ansible user to a remote server the user has to exist there. This is less of a problem if you´re starting out with your server deployments but if you already have xxx linux servers you´ll have to craft this with some script outside of the ansible scope to get started. (well not really, you could create users and stuff with ansible as well, sure)
Haha great tip but I had to laugh at having “..xxx Linux servers…”. I knew what you meant but my mind went there -> hosting xxx content on Linux servers….lulz Again thanks for the tip I noticed Jay kind of glosses over that there needs to be a user on that server already
I was just planning to put the public key on the billboard :) hahaha, good explanation. I just discovered your channel and I can say that it immediately became my favorite place.
I’m confused. Does your workstation have a Linux OS installed on it? Or is it basically windows with some kind of SSH tool? Like putty mobaxterm etc? The you just use the tool to make SSH connections to everything?
Thank you for this incredible learning path. Please clarify whether you created all virtual machines on one PC. In my case, all machines have the same IP address.
hi good work, my question is how does the openssh choose the key when you don't specify . why did the connection work with the first key and not the ansible key when you didn't specify the key to use?
Just one thing: I did it also in the past and do it also with test environments, but for production systems the fingerprint mechanism should be handled with more care.
curious... whats your feeling about adding ssh key to packer images build... allowing ansible to be used right after a clone. how would we add a key... thinking that cloud-init cleans the machine at the end when a template is created.
You are my favorite TH-cam Linux instructor. You are just the kind of teacher I was looking for. Quick question. Are you using the same user account to log in to you SSH sessions?
I'm currently going through this using WSL and using SSH to connect to a CentOS VM I have. Do I need to set up more VMs to have multiple servers to connect to? In your video you simply added 1 to the IP address to add more servers without issue I'm using a Win10 machine. I originally tried using VSCode but when I tried pinging my inventory, they all timed out due to not being able to SSH so I switched back to using a terminal instead of an IDE.
Well done great video, however when copy the ssh to a remote host your command doesnt work , i get "Error Too many arguments, expecting a target hostname?"
Hello Jay. Thank you for making these videos. And I also have few questions for you. When I was trying to simulate this video in my Oracle virtual box running Ubuntu 20 LTS, I faced two problems with tmux that I couldn't solve First, when I opened four different windows like you did, they all have the same IP address. How can I assign different IP addresses to each window? Second, when I tried to rename the windows like you named them, The rename command works but when i write a new name and hit enter, it say the file or the name couldn't be found and defaults back to its original name. But on my screen it, An index word is placed before the renaming space, which you can't delete. I will greatly appreciate It you can help me with these issues. Thank you again. And have a great day in peace and in good health
when I try to copy the second key (ansible) on the first host I get this error: /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/maroci/.ssh/ansible.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys root@addreshost: Permission denied (publickey).
You mentioned that you should manually log into each of the hosts with ssh, to accept the ECDSA key via the interactive prompt, but if you're working with hundred or thousands of servers - wouldn't that be a terrible way to do it? I am asking because this is why I am starting to learn Ansible is so that I don't have to manually log into each host permutatively with each other so that I can get passwordless ssh working between all of the host pairs. Thanks.
@@LearnLinuxTV But if you were doing pair-wise login where all of the deployments have to also cross-communicate with each other, the ECDSA key for the deployments won't be know until they are deployed. For the Ansible to client deployment, this will work. I am not sure if this will work for pairwise clientclient communications though.
You go into good detail a lot which I like. However you never once told us when you switched servers and so I ended up following along but copying stuff to the wrong servers which led to me having to restart. I bet 99% of us aren't using what you are for VMS so please make sure to make it clear when you switch between servers. It is especially hard to notice when you are using that software because all you do is click "1" to change so I am sure I am not the only one that missed that. Overall though I appreciate the series, you seem to be one of the only good series on youtube so thank you for the knowledge.
In case someone come across this issue "ssh: could not resolve hostname add: Name or service not known". Make sure to apply the changes by either restarting your terminal or sourcing the .bashrc file with the following command "source ~/.bashrc"
I don't have access to any Linux or UNIX machines at all to practice tge stuff in your videos. Is there an easy and preferably free way creating 3 or 4 VM in a cloud provider? This way I will be able to practice Ansible
Hi there. One easy and free way to practice would be virtualbox from Oracle, which is free. While there are so called free tiers from various cloud providers, but you need to be careful, because not everything is free and some free tiers expire pretty soon. The safest way is to use virtualbox, if your machine has enough power and supports virtualization.
I disagree with the idea of using an ssh key for ansible. Instead you should have keys for each person with access - this will allow you to remove access for each person individually
That's because you're probably trying to ssh into VPS - you'll need to run the following: ssh -i ubuntu@REPLACE-WITH-YOUR-IP-ADDRESS.com If you're not using Ubuntu then put the name of your distro before the '@' sign - unless you created a different username. Where I put 'REPLACE-WITH-YOUR-IP-ADDRESS' should be self explanatory - but just in case, you'll replace that with your VPS IP Address (or Ec2 or whatever you're ssh'ing into).
Your videos should be a template for all other teachable videos. It was clear, good pace, easy to follow and understand. And you explained things perfectly! Thank you.
one of the best lecturers I have listened to😁 keep on good work
thank youuuu
Thank you so much for these fantastic tutorials, - really appreciate the clear narration, no um'ing or ar'ing etc
Ohh my!! - This content is better than most paid training I have gotten so far. I signed up for your patron to give you much needed credit for your great work. Looking forward to browsing through all your content :)
fyi you can play this at 1.25 speed and it is understandable
Legend Unlocked!
You might go even further. I'm watching at 1.75
thanksthiscommentwasactuallyhelpful:)
An absolute necessity if you have ADD. I can't listen to people who talk slow.
Holy smokes you are so right. I just did and it was like 👍 correct speed. Never thought of that was what was irking me about Jay’s delivery.
This is a great ssh tutorial regardless of if someone wants to use Ansible or not!
this is just a 10/10 video, I understand the concepts of public/private keys but this really helped me understand how to make and use them in the real world.
Awesome tutorial! You know what, I watched a lot videos about ssh keys to understand this topic but this is first in which someone showed that we don't copy the whole key file but the content of key file to the file "authorized_keys" . Now I understand :)
I am glad I found this channel, thank you for existing!
your video is making me as an strong Engineer in my core... thank you jay.....love from india
Thank you so much your content is truly well organized, well edited the speed of your voice is 10/10, content is really spot on.
For those who can't access the Ubuntu server instances on Virtual Box via ssh.
Settings > Network
Adapter 1: Select Host-Only-Adapter (If you don't have any available name for Host-only Adapter, first go to File Menu > Host Network Manager and Create)
Adapter 2: NAT
❤🔥
Thanks Jay, I cam here to learn ansible and all of a sudden I learned so much more the stuff that I didnt bother to learn.
Second video into your series and I'm already loving it. Keep making great content!
Thank you so much, Jay, great video and work! very helpfull!! BTW, your english is so beautiful, no any accent, your video quality is also clear and perfect, zoom control is very good, we can see, you definittely spent lot of time and energy to make this video, thanks again!
This series is awesome! I truly appreciate the detailed, concise walkthrough.
finally I got it with SSH, Thank you so much for the effort
That is great . Im junior Python developer . This is Zero to Hero .... Thanks So MUCH !!!
Thanks Jay, your tutorials are always awesome and very informative.
thank you so much for your video, you explain step by step how to setup an ssh connection for the project of Ansible.
Good info, but what you don´t mention is that before you can copy over the pub ssh key for the ansible user to a remote server the user has to exist there. This is less of a problem if you´re starting out with your server deployments but if you already have xxx linux servers you´ll have to craft this with some script outside of the ansible scope to get started. (well not really, you could create users and stuff with ansible as well, sure)
Haha great tip but I had to laugh at having “..xxx Linux servers…”. I knew what you meant but my mind went there -> hosting xxx content on Linux servers….lulz
Again thanks for the tip I noticed Jay kind of glosses over that there needs to be a user on that server already
Can you guys tell me how to do that? or know any TH-cam video where i can see it?
I was just planning to put the public key on the billboard :) hahaha, good explanation. I just discovered your channel and I can say that it immediately became my favorite place.
Thanks for this. This is one of the best and detailed series I have seen.
Such a amazing style, I have request please make a series of linux administration, and othe devops tools. thanks
Thank you very much sir... For this quality of video for free...❤️❤️❤️
This is superb. Solved some long overdue issues for me.
Thank you for the over view of SSH
You are doing a great job of teaching
I’m confused. Does your workstation have a Linux OS installed on it? Or is it basically windows with some kind of SSH tool? Like putty mobaxterm etc? The you just use the tool to make SSH connections to everything?
I'm glad to find this video, great job.
I wish I could hit the like button a hundred times!
Great channel. Love the content.
Your products are amazing! Thanks a bunch!
Awsome tutorials! Wish I had found your channel earlier
that opened my eyes man, thanks a lot
have to pay attention that you've changed tmux panes but it's great tutorial! thank you very much!
Wow you are very good at teaching! Thank you
Thank you for this incredible learning path. Please clarify whether you created all virtual machines on one PC. In my case, all machines have the same IP address.
If you cloned it power off and remove network and reattach? After that configure up address as static and also change hostname
You are the best man! Thanks alot!
Thank you! This is super-high quality training!
hi good work,
my question is how does the openssh choose the key when you don't specify .
why did the connection work with the first key and not the ansible key when you didn't specify the key to use?
Much appreciated! Thank you!
Hello, your videos are awesome. I like your tmux setup, is possible somewhere find and download same theme? Thank you.
Nice explanation!
Great video Jay
Youre amazing! Thanks for the content!!!
Nice explaination and qualtiy stuff, Thankyou.
Just one thing: I did it also in the past and do it also with test environments, but for production systems the fingerprint mechanism should be handled with more care.
This was good I am excited.
what is yours ssh_config and sshd_config - What kind of identification rules is enabled in your config?
curious... whats your feeling about adding ssh key to packer images build... allowing ansible to be used right after a clone.
how would we add a key... thinking that cloud-init cleans the machine at the end when a template is created.
The bottom line of the video: which tool is allowing you to switch between several shells and showing you on which one you are?
tmux
13:25 i allways have wondered what is purpose/story behind this little random drawings.
Great video, thanks a lot!
You are my favorite TH-cam Linux instructor. You are just the kind of teacher I was looking for. Quick question. Are you using the same user account to log in to you SSH sessions?
Which tool is he using to navigate between his vm's? Cant hear it clearly enough. Teambox,teamvox,...
Tmux
I'm currently going through this using WSL and using SSH to connect to a CentOS VM I have. Do I need to set up more VMs to have multiple servers to connect to? In your video you simply added 1 to the IP address to add more servers without issue
I'm using a Win10 machine. I originally tried using VSCode but when I tried pinging my inventory, they all timed out due to not being able to SSH so I switched back to using a terminal instead of an IDE.
Great job👍
Well done great video, however when copy the ssh to a remote host your command doesnt work , i get "Error Too many arguments, expecting a target hostname?"
Many Thanks Bro ! It's very help me
WOW thanky ou for the information I done this before but I never understood what was happening underhood
Please, which terminal application are you using for SSH?
Hi Jay, Can we use certs for nodes and users for that purpose? to authenticate our hosts (servers) and users...
If I want to connect with 100 servers do i need to follow these same steps? Is there any alternative?
Thanks for this question, I asked myself the same. 🤝
How does ssh-copy-id put the public key into the server's autorized_keys file? how is this request authenticated?
Authentication through username and password, ssh-cooy-id prompts for password
great tutorial, thanks
Hello Jay. Thank you for making these videos. And I also have few questions for you.
When I was trying to simulate this video in my Oracle virtual box running Ubuntu 20 LTS, I faced two problems with tmux that I couldn't solve
First, when I opened four different windows like you did, they all have the same IP address. How can I assign different IP addresses to each window?
Second, when I tried to rename the windows like you named them,
The rename command works but when i write a new name and hit enter, it say the file or the name couldn't be found and defaults back to its original name. But on my screen it, An index word is placed before the renaming space, which you can't delete.
I will greatly appreciate It you can help me with these issues.
Thank you again.
And have a great day in peace and in good health
We should have created a separate ansible service account I think :) Great tutorial though!
thanks buddy so many good things
How do you ssh-copy-id to an ec2 instance?
when I try to copy the second key (ansible) on the first host I get this error:
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/maroci/.ssh/ansible.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@addreshost: Permission denied (publickey).
I had the same problem, try with non-root user. it worked for me.
You mentioned that you should manually log into each of the hosts with ssh, to accept the ECDSA key via the interactive prompt, but if you're working with hundred or thousands of servers - wouldn't that be a terrible way to do it?
I am asking because this is why I am starting to learn Ansible is so that I don't have to manually log into each host permutatively with each other so that I can get passwordless ssh working between all of the host pairs.
Thanks.
You can include the ssh key in your deployment image.
@@LearnLinuxTV
But if you were doing pair-wise login where all of the deployments have to also cross-communicate with each other, the ECDSA key for the deployments won't be know until they are deployed.
For the Ansible to client deployment, this will work.
I am not sure if this will work for pairwise clientclient communications though.
Excellent
Great video but there is one thing I'm a bit lost on. How are you able to ssh into a server just using the IP and not specifying a user?
7:59 read the footnote
Totally missed that! Thanks
Totally missed that! Thanks
You go into good detail a lot which I like. However you never once told us when you switched servers and so I ended up following along but copying stuff to the wrong servers which led to me having to restart. I bet 99% of us aren't using what you are for VMS so please make sure to make it clear when you switch between servers. It is especially hard to notice when you are using that software because all you do is click "1" to change so I am sure I am not the only one that missed that. Overall though I appreciate the series, you seem to be one of the only good series on youtube so thank you for the knowledge.
Are we supposed to download tmux and have 3 additional servers as well for this tutorial?
He mentioned that tmux is just his favorite, but yeah you can do that
you are amazing, how about making videos for installing like jenkins, nginx, tomcat without root?
In case someone come across this issue "ssh: could not resolve hostname add: Name or service not known". Make sure to apply the changes by either restarting your terminal or sourcing the .bashrc file with the following command "source ~/.bashrc"
System76 Rocks !
Which password want to give there video 8:15
go to 18:00 for the ansible ssh key creation
great video , appreciate if you add automation for network devices as well to the series
big like
I don't have access to any Linux or UNIX machines at all to practice tge stuff in your videos. Is there an easy and preferably free way creating 3 or 4 VM in a cloud provider? This way I will be able to practice Ansible
Hi there. One easy and free way to practice would be virtualbox from Oracle, which is free. While there are so called free tiers from various cloud providers, but you need to be careful, because not everything is free and some free tiers expire pretty soon. The safest way is to use virtualbox, if your machine has enough power and supports virtualization.
So I want to use Ansible with network switches. Does the Ansible ping command only work if python is installed on the target server/switch?
I'm saving this for myself, feel free to like or add.
23:22 Too lazy to write passphrase
Thanks 👍
is it possible to share your .bashrc ? want to makeuse of some of the awesome aliases.
How did he create server1, server2, server3??
I'm a total newbie. Can anyone guide pls?
Please how do I create or set the IP address for each servers. I'm using vagrant
"are you sure" about that fingerprint?
Get it before you send (colo) it
Did not work for me on Ubuntu. authorized_keys added but does not work
I disagree with the idea of using an ssh key for ansible. Instead you should have keys for each person with access - this will allow you to remove access for each person individually
Thank you
what if we have 1000 servers to manage?
ssh passwords are not the standard though?
ssh
Permission denied (publickey).
ssh
Permission denied (publickey).
Please help me
That's because you're probably trying to ssh into VPS - you'll need to run the following:
ssh -i ubuntu@REPLACE-WITH-YOUR-IP-ADDRESS.com
If you're not using Ubuntu then put the name of your distro before the '@' sign - unless you created a different username. Where I put 'REPLACE-WITH-YOUR-IP-ADDRESS' should be self explanatory - but just in case, you'll replace that with your VPS IP Address (or Ec2 or whatever you're ssh'ing into).
i hate, when commited ppl call themselves lazy xdddddd great videos
how can i create VM ?
FYI, I used this to get the targets ssh finger-print;
for i in {200..215}; do ssh-keyscan -H 192.168.101.$i >> ~/.ssh/known_hosts ; done
thanks