各种笔记
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

482 B

查看ip地址 ifconfig -a

编辑/etc/inetd.conf,去掉ssh前的#,保存退出. 编辑/etc/rc.conf,最后加入:sshd_enable="yes"即可 启动sshd服务:#/etc/rc.d/sshd start #netstat -an 检查服务是否启动,22端口有无sshd服务监听。 编辑/etc/ssh/sshd_config,在末尾加上如下内容:

PermitRootLogin yes #允许root通过sshd登陆

PermitEmptyPasswords no #不允许空密码

PasswordAuthentication yes 重新启动sshd服务:/etc/rc.d/sshd restart。