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