sshd re-exec requires execution with an absolute path

来源:互联网 发布:银河证券海王星软件 编辑:程序博客网 时间:2024/06/07 22:07

转载于:http://hi.baidu.com/dadait/blog/item/1db9ccbf82517a0d18d81fde.html

 

FreeBSD默认是不让root通过ssh登陆,遂修改相关的配置文件:
FreeBSD#vi /etc/sshd/sshd_config
#PermitRootLogin no
将这句修改成:
PermitRootLogin yes
保存退出,重启sshd服务却报错了:
sshd re-exec requires execution with an absolute path
直接进入/etc/rc.d目录,输入sshd start,一样错误提示,
FreeBSD的命令执行方法或许变了,必须这样来:
FreeBSD#cd /etc/rc.d
FreeBSD#./sshd start|stop|restart
或直接输入完整的路径并带上命令操作:
FreeBSD#/etc/rc.d/sshd start|stop|restart

本文来源于丹丹和谐的日志 http://www.siutung.org 原文链接:http://log.whidc.net/post/203/