Unit 5: Setting up and Running SSH on an Ubuntu Server
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
- One of my errors was using the wrong internal lan address. Thus I may falsely recall things as not succeeding when they may have.
- After setting up SSH server per Research Link #1 I still could not log in remotely.
- It seemed as if the procedure of Research Links #3 caused both user and root to start functioning remotely.
Research Links
- DAI: ubuntu how to set up ssh server
- GAI: ubuntu i can not log in using ssh – poked around using this a bit. Nothing was conclusive although see note #1.
- 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
- Update System Packages: sudo apt update && sudo apt upgrade
- Install OpenSSH Server: sudo apt install openssh-server
- Start and Enable the SSH Service: sudo systemctl enable –now ssh
- ?check the status of the SSH service with: sudo systemctl status ssh
- If you have a firewall enabled (like UFW) allow SSH connections: Configure the Firewall: sudo ufw allow ssh
- To enable the firewall if it’s not already active: sudo ufw enable
- Secure SSH Configuration (Optional) – did not do this on my local trainer server
- Restart the SSH server to invoke the new settings: sudo systemctl restart ssh
- 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
0 Comments