Unit 5: Setting up and Running SSH on an Ubuntu Server

Published by Fudgy McFarlen on

Summary

  • I need to run through this again because of my confusion of what IP address the SSH server was running on
  • I also hid my own Easter eggs by trying to set SSH server settings by way of a different box while not logged in to the server as I could not be due to it being the SSH server I needed to log in with 

Notes 

  1. One of my errors was using the wrong internal lan address.  Thus I may falsely recall things as not succeeding when they may have.
  2. After setting up SSH server per Research Link #1 I still could not log in remotely. 
  3. It seemed as if the procedure of Research Links #3 caused both user and root to start functioning remotely.

Research Links

  1. DAI: ubuntu how to set up ssh server
  2. GAI: ubuntu i can not log in using ssh – poked around using this a bit.  Nothing was conclusive although see note #1.
  3. Enable SSH root login on Ubuntu 20.04 Focal Fossa Linux 

 

ubuntu how to set up ssh server  – research link #1

Steps to Install and Configure SSH Server

  1.  Update System Packages:  sudo apt update && sudo apt upgrade
  2. Install OpenSSH Server:   sudo apt install openssh-server
  3. Start and Enable the SSH Service:  sudo systemctl enable –now ssh
  4. ?check the status of the SSH service with:  sudo systemctl status ssh
  5. If you have a firewall enabled (like UFW) allow SSH connections:   Configure the Firewall: sudo ufw allow ssh
  6. To enable the firewall if it’s not already active:  sudo ufw enable
  7. Secure SSH Configuration (Optional) – did not do this on my local trainer server
  8. Restart the SSH server to invoke the new settings: sudo systemctl restart ssh
  9. Connecting to the SSH Server:  ssh username@IP_address

Results:  I could not log in from another machine after doing the above. 

 

Ancillary Notes

  • Molly-Guard – Molly-guard is a utility for Ubuntu that prevents accidental shutdowns or reboots by prompting the user to confirm the hostname of the machine before executing such commands, especially over SSH sessions.
  • MonkeySphere – Monkeysphere is a framework in Ubuntu Linux that uses the OpenPGP web of trust to manage key-based authentication for OpenSSH and TLS connections. It allows users to authenticate themselves and the servers they connect to using OpenPGP keys, enhancing security and trust in these connections.
  • SSH-Askpass – SSH-Askpass is a utility in Ubuntu Linux that provides a graphical prompt for entering SSH key passphrases. It allows users to securely input their passphrases without needing to use the terminal directly.

ZUZDi6

Categories:

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *