Create a banner message for your ssh service

Assignment Help Other Subject
Reference no: EM133110446

Part 1: Create user accounts to be used for testing
1. Start up your Ubuntu Server VM from last week.
2. Open your Windows command prompt on your local machine and login to your Ubuntu server with the command:
3. Create a new user account:
a. Use the command: adduser username
i. For the username, use the syntax: yourname_lab4 (example: mine would be: kris_lab4)
ii. Follow the prompts as given
b. Create a second account using the same syntax: yourname_lab4_2
i. Follow the prompts as given

4. Take a screenshot showing the new accountsthat are created.
Paste screenshot here

Part 2: Configure SSH
1. Create a backup copy of your ssh config file
a. sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.backup
b. sudo chmod a-w /etc/ssh/sshd_config.backup
2. Include a screenshot of your SSH directory by running the command: ls -l /etc/ssh
Paste screenshot here

3. Open your SSH config file
a. sudo nano /etc/ssh/sshd_config
4. Deny SSH access to the account:yourname_lab4
a. Add the line: DenyUsers yourname_lab4
5. Close the document using the key commands ctrl + X and save the config
6. Restart the ssh service
a. sudo systemctl restart ssh or sudo service sshd restart
7. On your Windows machine, open a second command prompt (do not close the one you are using!)
8. Try to connect using your yourname_lab4 account
a. ssh yourname_lab4@ubuntuserverip
b. Did this work? Why or why not?

9. Try to connect using your yourname_lab4_2 account
a. ssh yourname_lab4_2@ubuntuserverip
b. Did this work? Why or why not?
10. Close the SSH terminal with the yourname_lab4and yourname_lab4_2 connections.

11. Open the sshd_config file
a. sudo nano /etc/ssh/sshd_config
12. Find the line that says "Port 22" and change that number to "2222"
13. Restart the ssh service
a. sudo systemctl restart ssh
14. Download Zenmap on to your Windows machine
15. Use Zenmap to scan your Ubuntu server
a. Include a screenshot of the discovered ports.
Paste screenshot here

b. What port did Zenmap identify with SSH? Why?

c. Did you lose connection to your SSH session? Why or why not?

16. Restart the SSH shell if needed
a. ssh username@ubuntuserverip
17. Open the sshd_config file
a. sudo nano /etc/ssh/sshd_config
18. Find the line that indicates log level and change it to:
a. LogLevel VERBOSE or (#LogLevel INFO; remove the comment)
b. Close the log file using ctrl + x
19. Restart the ssh service
a. sudo systemctl restart ssh
20. Search for SSH activity in your log file:
a. grep ‘sshd' /var/log/auth.log or /var/log/secure
b. Include a screenshot of your log file results
Paste screenshot here

21. Create a banner message for your SSH service
a. sudo nano /etc/ssh/ssh_banner.net
b. In the text editor enter the following information:
i. Your Name:
ii. Your student number:
iii. The course number:
iv. Today's date
c. Close the text editor with Ctrl +X
22. Add the banner message to the SSH config file
a. sudo nano /etc/ssh/sshd_config
b. Find the line that says "Banner" and add the following information:
i. Banner /etc/ssh/ssh_banner.net
ii. Example:
c. Close the text editor using CTRL + X
d. Restart the SSH service
i. sudo systemctl restart ssh
23. Log out of the SSH terminal session completely
24. Log back in
a. ssh username@ubuntuserverip
b. Take a screenshot of the banner message that appears
Paste Screenshot here

Part 3: Firewall Configurations
1. Create a rule using ufw to allow traffic through port 22
a. sudo ufw allow 22
b. Why are we doing this before ufw is enabled?

2. Enable ufw
a. sudo ufw enable
b. Did you lose connectivity to your SSH terminal? Why or why not?

3. Enable Rate Limiting using UFW for port 22
a. sudo ufw limit 22
b. What benefit does rate limiting provide?

4. View your current ufw firewall rules:
a. sudo ufw status
b. Take a screenshot showing the current rules
Paste Screenshot here

5. Adjust your firewall's logging from low to medium
a. ufw logging medium
6. Read your firewall's logging messages
a. cat /var/log/ufw.log
b. Take a screenshot of the log messages
Paste screenshot here

Part 4: Install Antivirus
1. Install the ClamAV antivirus
a. apt-get install clamav clamav-daemon
2. Update your ClamAV database
a. sudo systemctl stop clamav-freshclam
b. sudo freshclam
c. systemctl start clamav-freshclam
d. systemctl enable clamav-freshclam
3. Perform an infected scan on your own user's home directory
a. clamscan /home/username
b. Take a screenshot of the results
Paste screenshot here

Part 5: (OPTIONAL!)
1. Implement 2FA for the second account we created: yourname_lab4_2
2. Follow the steps:
3. Make the necessary configuration changes to the /etc/pam.d/sshd and /etc/ssh/sshd_config files
a. Take a screenshot of the changes made to the sshd_config file
Paste Bonus Screenshot here

4. Log in to the yourname_lab4_2 account and complete the pairing process
a. google-authenticator
b. Follow the prompts as indicated
5. Log out from the yourname_lab4_2session and log back in using SSH through command prompt
a. ssh yourname_lab4_2@ubuntuip
b. Take a screenshot showing that the session requested a verification code
Paste Bonus Screenshot here

Attachment:- Firewall Configurations.rar

Reference no: EM133110446

Questions Cloud

What is hedged domestic return : What is your hedged domestic return? State your answer as a percentage with two decimal places and not in decimal form (i.e. 13.21 not .1321).
Calculate depreciation expense : The residual value has been revised to 18,000 €. The company uses the straight-line method of depreciation. Calculate depreciation expense for 2020
Annualized cost of the bank? loan-paymaster enterprises : Paymaster Enterprises has arranged to finance its seasonal? working-capital needs with a? short-term bank loan. The loan will carry a rate of 14 percent per ann
Compute the basic and diluted EPS : Question - Net profit attributable to ordinary shareholders for 2007 was Tsh 900,000. Compute the basic and diluted EPS
Create a banner message for your ssh service : Create a banner message for your SSH service and Create a rule using ufw to allow traffic through port 22
What is the current price of the bonds : Lance Whittingham IV specializes in buying deep discount bonds. These represent bonds that are trading at well below par value. He has his eye on a bond issued
Calculate the maximum loan amount : Assume you have been engaged by a real estate developer to analyze a proposed real estate investment. The property is expected to be financed with loan-to-value
Evaluate the performance of reits : A friend wants to learn about the nature of equity securitized real estate, specifically real estate investment trust (REITs). Now write an essay explaining to
What is hedged domestic return : What is your hedged domestic return? State your answer as a percentage with two decimal places and not in decimal form (i.e. 13.21 not .1321).

Reviews

Write a Review

Other Subject Questions & Answers

  How does this argument play out in perfume

Schmid argues that one of the ways we can stop audiences from identifying with serial killers is to use their abused or abnormal childhood to separate them from our own experiences. How does this work in Perfume? Relate the material in Schmid's ch..

  Discuss an ineffective health-care policy

Discuss an ineffective health-care policy that you personally experienced in your practice, and describe the issues that you feel made it unsuccessful. Using incrementalism as the policymaking model, describe how you would work to make it a more effe..

  What type of ethical issues would you include in agreement

Describe how the ethical boundaries are established in an executive coaching relationship. What type of agreement is an executive coach likely to be a part of?

  What challenges do current reimbursement models pose

What challenges do current reimbursement models pose for nurse leaders in their obligations to promote quality, cost-effective patient care

  How will use class for future classes and life experiences

In your conclusion, you should summarize your main points and end by arguing ENG 111's significance. This is a great place to connect to the future.

  Reflective educators and mastery demonstration

What does it mean to be a lifelong learner, and how does that affect you as a professional educator?

  Dearborn tech produces a circuit board that has an average

please provide detailed solutions to the following problemsexercises1 find the following probabilitiesa p 0 le z le .5b

  Develop your own research project

Students this project will allow you to formulate and hypothetically develop your own research project. The purpose of this project is for the student.

  Identify the preferred option for resolving the conflict

Identify the preferred option for resolving the conflict, and explain why it is the best option. How does this option address the needs, potential.

  Identified specific learning disability in the academic area

Are Sally's current special education services consistent with the inclusion model? Why? Why not?

  How might the internet be involved in changes

How do you think life in the United States will change in the next 10 years? How might the Internet be involved in the changes?

  How should parents deal with preschoolers fears

How should parents deal with preschoolers' fears, which often are irrational (e.g., "monsters under the bed"), yet often result in nightmares and night terrors?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd