歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> FreeBSD 5.4 安裝後無法用SecureCRT連接

FreeBSD 5.4 安裝後無法用SecureCRT連接

日期:2017/2/28 11:12:47   编辑:關於Unix


前提:
1、sshd已經啟動 //可以用/etc/rc.d/sshd restart 來嘗試是否可以重啟服務
2、端口處於LISTEN狀態
3、遠程使用telnet Host_IP_Address 22 有回顯 //SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419

使用SecureCRT連接時提示:unable to authenticate using any of the configured authentication methods
這時需要修改sshd_config配置文件
ee /etc/ssh/sshd_config
找到
# Change to yes to enable built-in password authentication.
#PasswordAuthentication no //去掉前面'#'符號
改成
PasswordAuthentication yes添加
PermitRootLogin yes //為了可以使用root直接登錄,從安全上不建議這麼使用。建議創建一個用戶添加到wheel組中,使用su登錄。保存、重啟sshd。inetd[387]: ssh/tcp: bind: Address already in use.
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
Copyright © Linux教程網 All Rights Reserved