在大多数Linux发行版本当中安装好后基本都会带有ssh,只需要简单设置以下就好!
一、查看ssh是否安装
rpm -qa | grep ssh
libssh-0.9.4-2.fc32.x86_64 NetworkManager-ssh-1.2.11-1.fc32.x86_64 openssh-8.2p1-3.fc32.x86_64 qemu-block-ssh-4.2.0-7.fc32.x86_64 libssh-config-0.9.4-2.fc32.noarch sshpass-1.06-9.fc32.x86_64 openssh-clients-8.2p1-3.fc32.x86_64 NetworkManager-ssh-gnome-1.2.11-1.fc32.x86_64 libssh2-1.9.0-5.fc32.x86_64 openssh-server-8.2p1-3.fc32.x86_64
输出的内容如果没有openssh-clients、openssh-server可以安装
sudo openssh-clients openssh-server
二、启动ssh并添加ssh到开机启动
sudo systemctl start ssh.services
sudo systemctl enable ssh.services
网友评论