要在Rocky Linux中配置SSH访问,您可以按照以下步骤操作:
sudo dnf install openssh-server
sudo systemctl start sshd
sudo systemctl enable sshd
sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --reload
sudo systemctl status sshd
username
和 ip_address
分别为您的用户名和Rocky Linux系统的IP地址):ssh username@ip_address
输入您的密码,并且将会连接到Rocky Linux系统的命令行界面。您现在已经成功配置了SSH访问。