linux_versions:ubuntu
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux_versions:ubuntu [2025/02/11 07:33] – 85.219.17.206 | linux_versions:ubuntu [2025/02/13 13:36] (current) – 195.53.121.100 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Ubuntu |
| - | Update Your System: Before installing any new software, it’s a good practice to update your system’s package list and upgrade the existing packages to their latest versions. | + | * [[Ubuntu 22.04:enabling ssh|Enabling ssh]] |
| - | $ sudo apt update | + | * [[Ubuntu 22.04: |
| - | $ sudo apt upgrade | + | |
| - | This ensures that you have all the latest security patches and software updates, reducing the risk of vulnerabilities. | + | * [[Ubuntu 22.04:enable root password|Root password/ |
| - | Install OpenSSH Server: With your system updated, the next step is to install the OpenSSH server package. This package contains the necessary software to run an SSH server. | + | |
| - | $ sudo apt install ssh | + | * [[Ubuntu 22.04:pub key|Public Key ssh]] |
| - | + | ||
| - | Once installed, the SSH service will start automatically. However, it’s always a good idea to verify that the service is running properly. | + | |
| - | + | ||
| - | Enable SSH Service to Start on Boot: To ensure that the SSH service automatically starts after a reboot, you need to enable it using systemctl. | + | |
| - | + | ||
| - | $ sudo systemctl enable | + | |
| - | + | ||
| - | This command configures the system to start the SSH server automatically whenever the system boots up, ensuring that remote access is available after restarts without manual intervention. | + | |
| - | Verify SSH Service Status: To check the SSH service’s status and confirm that it’s active and running, use the systemctl command. | + | |
| - | + | ||
| - | $ sudo systemctl status ssh | + | |
| - | + | ||
| - | If the service is not running, you can start it with the command: | + | |
| - | + | ||
| - | $ sudo systemctl start ssh | + | |
| - | + | ||
| - | This step ensures that the SSH server is operational and ready to accept connections. | + | |
| - | Configure Firewall: If you are using the UFW firewall, it’s necessary to configure it to allow SSH connections. This step is crucial for remote access, especially if you’re operating in a protected network environment. | + | |
| - | + | ||
| - | $ sudo ufw allow ssh | + | |
| - | $ sudo ufw enable | + | |
| - | + | ||
| - | This command configures UFW to allow inbound SSH connections, | + | |
| - | Connect to Your Ubuntu Machine via SSH: With SSH enabled and the firewall configured, you can now connect to your Ubuntu machine from another computer using SSH. | + | |
| - | + | ||
| - | $ ssh username@your_server_ip_OR_hostname | + | |
| - | + | ||
| - | Replace username with your actual username on the Ubuntu system, and your_server_ip with the IP address of your Ubuntu machine. This allows for secure remote access to your system. | + | |
linux_versions/ubuntu.1739259201.txt.gz · Last modified: 2025/02/11 07:33 by 85.219.17.206
