前提:
1、sshd已經(jīng)啟動(dòng) //可以用/etc/rc.d/sshd restart 來(lái)嘗試是否可以重啟服務(wù)
2、端口處于LISTEN狀態(tài)
3、遠(yuǎn)程使用telnet Host_IP_Address 22 有回顯 //SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419
使用SecureCRT連接時(shí)提示:unable to authenticate using any of the configured authentication methods
【FreeBSD 5.4 安裝后無(wú)法用SecureCRT連接】這時(shí)需要修改sshd_config配置文件
ee /etc/ssh/sshd_config
找到
# Change to yes to enable built-in passWord authentication.
#PasswordAuthentication no //去掉前面'#'符號(hào)
改成
PasswordAuthentication yes添加
PermitRootLogin yes //為了可以使用root直接登錄,從安全上不建議這么使用 。建議創(chuàng)建一個(gè)用戶添加到wheel組中,使用su登錄 。保存、重啟sshd 。inetd[387]: ssh/tcp: bind: Address already in use.
檢查是否在/etc/inetd.conf 中打開了
ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4
改成
#ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4
保存、重啟 。/etc/inetd restart
推薦閱讀
- 1 FreeBSD-5.2下安裝ORACLE9i手記
- 配置FreeBSD的網(wǎng)關(guān)和網(wǎng)絡(luò)服務(wù)
- 在FreeBSD上組建ISP級(jí)的郵件系統(tǒng)
- FreeBSD Apache22 啟動(dòng)故障
- 28 FreeBSD連載:Packages Collection
- FreeBSD Port Tree 更新
- FreeBSD軟盤操作
- 上 FreeBSD服務(wù)器的安裝與優(yōu)化(1)
- 1 打造FreeBSD桌面系統(tǒng)
- 2 打造FreeBSD桌面系統(tǒng)
