在Linux中配置ssh

ssh的问题
1、chkconfig --list | grep sshd查看ssh服务有没有安装
2、修改sshd_config文件
修改/etc/ssh/sshd_config,主要是设置port 22,PermitRootLogin为yes,PasswordAuthentication为yes,Protocol为2,注意去掉前面的注释号,yes一定要小写
3、4、重新启动SSH服务:/etc/init.d/sshd restart
4验证SSH服务状态:/etc/init.d/sshd status

猜你喜欢

转载自ll-feng.iteye.com/blog/1678068