ssh服务
在/etc/ssh/下面有
ssh_config,
sshd_config,
两个文件
本机对外提供ssh服务,需要修改sshd_config,配置,
PermitRootLogin前面的#去掉,并将后面的prohibit password改为yes
保存,并重启服务即可。
注意:是sshd配置文件,不是ssh。
ssh服务
在/etc/ssh/下面有
ssh_config,
sshd_config,
两个文件
本机对外提供ssh服务,需要修改sshd_config,配置,
PermitRootLogin前面的#去掉,并将后面的prohibit password改为yes
保存,并重启服务即可。
注意:是sshd配置文件,不是ssh。