FreeBSD系统中启用SSH方法:
首先vi编辑/etc/inetd.conf,去掉ssh前的#,保存退出
编辑/etc/rc.conf
最后加入:sshd_enable="yes"即可
激活sshd服务:
techo#/etc/rc.d/sshd start
用下面命令检查服务是否启动,在22端口应该有监听。
#netstat -an ## check port number 22
最后
vi /etc/ssh/sshd_config,
希望用putty采用ssh方式登录FreeBSD,设置说明/etc/ssh/sshd_conf:
1.支持使用口令认证
# Change to yes to enable built-in password authentication.
PasswordAuthentication yes
PermitEmptyPasswords no 不允许空密码登录
2.允许以Root身份远程登录
PermitRootLogin yes
3.避免提示后长期等待
login as: root
Using keyboard-interactive authentication.
Password:
UseDNS no
修改完成后重启sshd
#killall -HUP sshd