1. dnf安装ssh
dnf -y install ssh
2. 启动ssh
service sshd start
3.开机自动运行启动
chkconfig sshd on
4.ssh文件配置
[root@linux234 ~]# vi /etc/ssh/sshd_config ← 用vi打开SSH的配置文件
#Protocol 2,1 ← 找到此行将行头“#”删除,再将行末的“,1”删除,只允许SSH2方式的连接
↓
Protocol 2 ← 修改后变为此状态,仅使用SSH2
dnf -y install ssh
2. 启动ssh
service sshd start
3.开机自动运行启动
chkconfig sshd on
4.ssh文件配置
[root@linux234 ~]# vi /etc/ssh/sshd_config ← 用vi打开SSH的配置文件
#Protocol 2,1 ← 找到此行将行头“#”删除,再将行末的“,1”删除,只允许SSH2方式的连接
↓
Protocol 2 ← 修改后变为此状态,仅使用SSH2