ubuntu:ssh:install_ssh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:ssh:install_ssh [2021/11/21 21:27] – peter | ubuntu:ssh:install_ssh [2025/05/21 09:26] (current) – peter | ||
---|---|---|---|
Line 2: | Line 2: | ||
<code bash> | <code bash> | ||
- | sudo apt install | + | sudo apt install |
</ | </ | ||
Line 35: | Line 35: | ||
Nov 21 21:24:44 plex sshd[83478]: | Nov 21 21:24:44 plex sshd[83478]: | ||
Nov 21 21:24:44 plex sshd[83478]: | Nov 21 21:24:44 plex sshd[83478]: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Start the SSH Service ===== | ||
+ | |||
+ | If the service is not running, start it: | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl start ssh | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 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. | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl enable ssh | ||
</ | </ | ||
Line 43: | Line 63: | ||
<code bash> | <code bash> | ||
sudo ufw allow ssh | sudo ufw allow ssh | ||
+ | sudo ufw enable | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Test ===== | ||
+ | |||
+ | From a remote system, try to connect to this system using SSH: | ||
+ | |||
+ | <code bash> | ||
+ | ssh username@server_ip_OR_hostname | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== TAGS ===== | ||
+ | |||
+ | * TAG: Networking | ||
+ | * TAG: Security | ||
+ | * TAG: Server | ||
+ | * TAG: SSH | ||
+ | |||
ubuntu/ssh/install_ssh.1637530024.txt.gz · Last modified: 2021/11/21 21:27 by peter