Score:0

(Ubuntu 22.04 Server) I need help

ao flag

I'll try to be as simple as i possibly can. I'm in quite a pickle.

See, i'm currently a student of a DevOps course. Too bad, our professor gives little to no theory knowledge. Honestly, it is kind to call him professor. All he does is giving us links to tutorials and saying "do them". Problem is, by doing this i understood little to nothing and so now i need some help on doing some specific exercises in order to pass.

From what i got, this is what our teacher wants us to do:

  • Install in VirtualBox a Ubuntu 22.04 Server LTS.

  • Configure it so that it can work as OpenSSH Server

  • Install Ansible

  • Connect the Windows machine as client to the Ubuntu virtual machine using Ansible

  • Test connectivity with pings

And....the problem is that without any explanation on a theory and practical level, i can't really get what i need to do. I found MANY guides online to install openssh, and many to install ansible, but i always miss the missing links between them all.

For example. I have the newly installed Ubuntu 22.04 Server.....am i stupid at asking : ok, but doesn't a server have an IP Address to pass to SSH configuration? Should i configure a Static IP Address and give it to SSH? Is that the Address i should later use to connect from Windows?

I know i'm being very vague, but that's exactly why i'm asking. I have knowledge of IP Addresses and so on from previous courses, but without a hands-on explanation, meaning that setup and things like that are new to me.

From what i understand, i have to setup an IP for the Ubuntu Server, install SSH Server using that IP, Install ansible on both devices (the virtual machine and the actual windows machine) and then connect em.

And i kinda need a step by step HOW for all of this.

Pilot6 avatar
cn flag
If your virtual machine uses NAT (the default option) it will get an IP from the host. You don't need to set a static IP. You can see the IP by `ip a` command. And you don't need any specific SSH configuration. The default should be OK. The task is quite easy.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.