[Fedora] Mở ssh

ShellScript

# Update
apt update -y

# install ssh
apt install -y openssh openssh-server openssh-clients openssl-libs

# Khởi động dịch vụ SSH để kết nối
systemctl start sshd

# Mở firewalld port 22 để bên ngoài có thể kết nối đến server
firewall-cmd --zone=public --add-port=22/tcp –-permanent
firewall-cmd -–reload

Viết bình luận của bạn

Email của bạn sẽ không được hiển thị công khai.