As root on server2, generate a private/public key pair without a passphrase using the ssh- keygen...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
As root on server2, generate a private/public key pair without a passphrase using the ssh- keygen command. 2. Distribute the public key to server3 with the ssh-copy-id command. 3. Use SSH (ssh server 3 or server3's IP address) to log on to server3 and accept the fingerprints for the server if presented. 4. On subsequent log in attempts from server2 to server3, you should not be prompted for a password. If you are prompted or encounter an error, include that in your work product submission. Type date in the same shell(s) you used to complete the above steps and take a screenshot showing the output from steps along with the date command. 5. As root with sudo on server3, edit the /etc/ssh/sshd_config file and change the value of the directive PermitRootLogin to "no". 6. Use the systemctl command to activate the change. 7. As root on server2, run ssh server3 (or its IP address). a. Note: It is expected that you'll get permission denied message. 8. Reverse the change on server3 and retry ssh server 3. a. Note: It is expected that you should be able to log in again. Type date in the same shells you used to complete the above steps and take a screenshot showing the output from steps along with the date command. Part One: Users and Groups Complete the following steps from a shell as root or sudo, on server2 and server3: 1. Create a new group Inxgrps2 with GID 6000 on server2 and Inxgrps3 on server3. 2. Create user userp1s2 with UID 5000 and GID 6000 on server2 and userpls3 with UID 5000 and GID 6000 on server3. 3. Assign this user a password and establish password aging attributes so that this user cannot change their password within 4 days after setting it and with a password validity of 30 days. This user should start getting warning messages for changing password 10 days prior to account lock down. This user account needs to expire on the 20th of the December in the next calendar year. 4. Then, add a for userpls2 on server2 and userpls3 on server3 to the /etc/sudoers file to allow this user full root access on the system. Make sure that this user is not prompted for a password when they use sudo to execute a command. 5. On server2 switch into the userp1s2 account and try running the following commands. Do the same on server3. a. sudo users. Confirm the id of the user accounts created in step 2. b. sudo groups. Confirm the gid of Inxgrp group created in step 1. Type date in the same shell you used to complete step 5 and take a screenshot of the output from step 5a and 5b and the date command. Do this for server2 and server3. Part Two - Networking Note: We need to pay careful attention to our virtualization configuration. The following steps assume you are using VirtualBox. If you are using a different product, use the equivalent features. Preparation a. Make sure server2 and server3 are powered off. b. Click Settings at the top and then Network on the window that pops up. c. Click on "Adapter 1" and ensure the "Enable Network Adapter" box is checked. d. Select "Host-only Adapter" from the drop-down list besides "Attached to" e. Ensure the same Host-only Adapter is selected under "Name:" on both server2 and server3. If, for some reason there is no adapter available, select Networking and click on the Host-only Networks tab: i. ii. Click on the icon to add a new host-only adapter (plus sign) Then, confirm the IP address and Mask assigned by VirtualBox on the new host-only adapter by selecting it and click on the edit icon (the screwdriver) a. Write down the Address and Mask - this will be your gateway and network definition for the virtual machines. Networking Configuration Finally, power on the virtual machines and perform the following steps: Add a new network interface to server2. 1. As userpls2 with sudo, run ip a and verify the presence of the new interface (e.g., enp0s8). 2. Use the nmcli command and assign IP x.x.x.212/24 and gateway x.x.x.1. a. Identify the network octets (x's) using preparation steps. 3. Set the network connection to auto-activate on system reboots. Add a new network interface to server3. 1. As userpls3 with sudo, run ip a and verify the presence of the new interface (e.g., enp0s8). 2. Use the nmcli command and assign IP x.x.x.213/24 and gateway x.x.x.1. a. Identify the network octets (x's) using preparation steps. 3. Set the network connection to auto-activate on system reboots. Type date in the same shell you used to complete the above steps and take a screenshot showing the output from steps along with the date command. Do this for server2 and server3. As root on server2, generate a private/public key pair without a passphrase using the ssh- keygen command. 2. Distribute the public key to server3 with the ssh-copy-id command. 3. Use SSH (ssh server 3 or server3's IP address) to log on to server3 and accept the fingerprints for the server if presented. 4. On subsequent log in attempts from server2 to server3, you should not be prompted for a password. If you are prompted or encounter an error, include that in your work product submission. Type date in the same shell(s) you used to complete the above steps and take a screenshot showing the output from steps along with the date command. 5. As root with sudo on server3, edit the /etc/ssh/sshd_config file and change the value of the directive PermitRootLogin to "no". 6. Use the systemctl command to activate the change. 7. As root on server2, run ssh server3 (or its IP address). a. Note: It is expected that you'll get permission denied message. 8. Reverse the change on server3 and retry ssh server 3. a. Note: It is expected that you should be able to log in again. Type date in the same shells you used to complete the above steps and take a screenshot showing the output from steps along with the date command. Part One: Users and Groups Complete the following steps from a shell as root or sudo, on server2 and server3: 1. Create a new group Inxgrps2 with GID 6000 on server2 and Inxgrps3 on server3. 2. Create user userp1s2 with UID 5000 and GID 6000 on server2 and userpls3 with UID 5000 and GID 6000 on server3. 3. Assign this user a password and establish password aging attributes so that this user cannot change their password within 4 days after setting it and with a password validity of 30 days. This user should start getting warning messages for changing password 10 days prior to account lock down. This user account needs to expire on the 20th of the December in the next calendar year. 4. Then, add a for userpls2 on server2 and userpls3 on server3 to the /etc/sudoers file to allow this user full root access on the system. Make sure that this user is not prompted for a password when they use sudo to execute a command. 5. On server2 switch into the userp1s2 account and try running the following commands. Do the same on server3. a. sudo users. Confirm the id of the user accounts created in step 2. b. sudo groups. Confirm the gid of Inxgrp group created in step 1. Type date in the same shell you used to complete step 5 and take a screenshot of the output from step 5a and 5b and the date command. Do this for server2 and server3. Part Two - Networking Note: We need to pay careful attention to our virtualization configuration. The following steps assume you are using VirtualBox. If you are using a different product, use the equivalent features. Preparation a. Make sure server2 and server3 are powered off. b. Click Settings at the top and then Network on the window that pops up. c. Click on "Adapter 1" and ensure the "Enable Network Adapter" box is checked. d. Select "Host-only Adapter" from the drop-down list besides "Attached to" e. Ensure the same Host-only Adapter is selected under "Name:" on both server2 and server3. If, for some reason there is no adapter available, select Networking and click on the Host-only Networks tab: i. ii. Click on the icon to add a new host-only adapter (plus sign) Then, confirm the IP address and Mask assigned by VirtualBox on the new host-only adapter by selecting it and click on the edit icon (the screwdriver) a. Write down the Address and Mask - this will be your gateway and network definition for the virtual machines. Networking Configuration Finally, power on the virtual machines and perform the following steps: Add a new network interface to server2. 1. As userpls2 with sudo, run ip a and verify the presence of the new interface (e.g., enp0s8). 2. Use the nmcli command and assign IP x.x.x.212/24 and gateway x.x.x.1. a. Identify the network octets (x's) using preparation steps. 3. Set the network connection to auto-activate on system reboots. Add a new network interface to server3. 1. As userpls3 with sudo, run ip a and verify the presence of the new interface (e.g., enp0s8). 2. Use the nmcli command and assign IP x.x.x.213/24 and gateway x.x.x.1. a. Identify the network octets (x's) using preparation steps. 3. Set the network connection to auto-activate on system reboots. Type date in the same shell you used to complete the above steps and take a screenshot showing the output from steps along with the date command. Do this for server2 and server3.
Expert Answer:
Related Book For
Accounting for Decision Making and Control
ISBN: 978-1259564550
9th edition
Authors: Jerold Zimmerman
Posted Date:
Students also viewed these computer network questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
During the software design phase, software engineers define details about the product construction, behavior, components, and interfaces. Explain how you can use the Unified Modeling Language (UML)...
-
Consider the BP oil spill that spawned a heavy public relations campaign after beaches were closed and wildlife was affected. write a two- to three-page paper that answers the following questions:...
-
A 5.0kg toy car can move along an x axis; Figure gives Fx of the force acting on the car, which begins at rest at time t = 0. The scale on the Fx axis is set by Fxs, = 5.0 N. In unit-vector notation,...
-
The complete combustion of \(\mathrm{C}_{2} \mathrm{H}_{4}\) in air yields: (a) \(\mathrm{C}_{2} \mathrm{H}_{4}\) and \(\mathrm{H}_{2}\) (b) \(\mathrm{CO}\) and \(\mathrm{H}_{2} \mathrm{O}\) (c)...
-
The Ski Factory provided the following information at December 31, 2015: Marketable Securities The company invested $52,000 in a portfolio of marketable securities on December 22, 2015. The...
-
Program for Calculate Compound Interest when principal, rate and number of periods are given.
-
Let R be the relation on the set of all mathematicians that contains the ordered pair (a,b) if and only if "a" and "b" have written a published mathematical paper together. a) Describe the relation...
-
A 480-g iron pan is heated on a stove to a temperature of 130 C. The pan is then dropped into a partially-filled sink of water at 20 C. The final temperature reached by the sink and the pan is 40 C....
-
if good leaders are required to be passionate about their organization/project/etc? Could you possibly share a vision yet not be passionate about it? And if so, would your ability to lead be lessened?
-
Oxygen gas having a volume of 1250 cm 3 at 43.1 C and 1.04 x 10 5 Pa expands until its volume is 1900 cm 3 and its press is 1.08 x 10 5 Pa. Find: (a) the number of moles of oxygen present and (b) the...
-
Describe public transportation based on the following criteria. You have access to internal processes. It has an organizational issue of lack of control of safety that needs to be resolved. You can...
-
Suppose a researcher obtains a grant to study the health and nutrition (or lack thereof) at a university with a large undergraduate population. To begin the study, a random sample of n = 100...
-
Suppose the heights of adult women are normally distributed with a mean of 65 inches and a standard deviation of 3.5 inches. In a room of 650 women, how many women would you expect to be over 6 feet...
-
5. How much would you need to deposit in an account now in order to have $5,000 in the account in 5 years? Assume the account earns 2% interest compounded monthly. 10. You deposit $300 each month...
-
SnapOn makes snap-together button fasteners (a male top and female bottom) for designer clothes. Each top and bottom consists of several metal parts that, when attached to the garment, allow the...
-
Logical Solutions reports the following overhead variances for 2016: Spending variance ........................... $100,000 F Efficiency variance ......................... $100,000 F Volume variance...
-
Rowe Waste Removal hires Sue Lingle to manage the apartment complex collection service and enters the apartment refuse removal market. To provide Lingle incentives to maximize Rowe's profit, she will...
-
A function \(f\left(x_{1}, x_{2} ight)\) of two variables \(x_{1}\) and \(x_{2}\) is given by a. Multiply the matrices and express \(f\) as a polynomial in \(x_{1}\) and \(x_{2}\). b. Determine the...
-
A function \(f(x, y, z)\) of \(x, y\), and \(z\) is defined as a. Multiply the matrices and express \(f\) as a polynomial in \(x, y\), and \(z\). b. Write down the three equations necessary to find...
-
Solve the matrix equation \([\mathbf{K}]\{\mathbf{Q}\}=\{\mathbf{F}\}\) using forward reduction and backward substitution, where, 5-10 [K] = -13-1 0-1 1 {F}= 0
Study smarter with the SolutionInn App