-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfigure_ssh
More file actions
33 lines (20 loc) · 854 Bytes
/
Copy pathConfigure_ssh
File metadata and controls
33 lines (20 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
########################################################
1) Install the OpenSSH Server package
# sudo dnf install openssh-server
2) Start and enable the SSH daemon (sshd) service:
# sudo systemctl start sshd
# sudo systemctl enable sshd
This ensure the SSH server starts automatically on boot. Verify the SSH daemon status
Now, check for the sshd status using:
# systemctl status sshd
It should indicate that the service is active (running)
3) Configure the firewall to allow SSH traffic
# sudo firewall-cmd --zone=public --permanent --add-service=ssh
# sudo firewall-cmd --reload
This opens the default SSH port(22) in the firewall.
OPTIONAL: Customer SSH configuration
Editing the main SSH server configuration file.
# sudo nano /etc/ssh/sshd_config
After making changes in configuration.
relaod the sshd.
# sudo systemctl reload sshd