FreeBSD SSH配置详解
默认情况下freebsd下的ssh服务是未被开启的
需要
首先vi编辑/etc/inetd.conf,去掉ssh前的#,保存退出 (开启****ssh服务)
修改freebsd可以用sshd权限用户登录ssh 但不能用root用户登录的方法
在/etc/ssh/sshd_config最后中加入
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
就可以了
最后编辑/etc/rc.conf
最后加入:sshd_enable="YES"即可 //"YES"一定要记得大写
激活sshd服务:
/etc/rc.d/sshd start
到此配置基本完成 看下ssh的22端口是否开启了
netstat -an |grep 22
或者是
ps -aux |grep ssh
出现
root 813 /usr/sbin/sshd
root 979 sshd: root@pts/0 (sshd)
ok,配置成功可以远程连接了
如需转载,请标明出处,谢谢。 http://blog.chinaunix.net/uid-29179844-id-3895509.html
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(1387) | 评论(0) | 转发(0) |