首先编辑/etc/inetd.conf,去掉其中ssh部分的注释,保存退出 编辑/etc/rc.conf 在最后加入:sshd_enable="yes" 因为我安装系统的时候已经设定允许从ssh登录 所以不用激活sshd服务,如果需要的话可以: /etc/rc.d/sshd start 当然,ssh相关软件我也不用安装了 然后就是产生ssh 的主机公钥与私钥: $ssh-keygen 按提示操作,我的主机上产生了两个文件:id_dsa,id_dsa.pub $echo "Idkey id_dsa" > identification 将公钥文件拷贝到远...
by ymll - BSD文档中心 - 2009-12-07 22:03:02 阅读(1948) 回复(0)
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用ssh连接,默认是不允许root登陆 freebsd ssh配置详解 首先vi编辑/etc/inetd.conf,去掉ssh前的#,保存退出 (开启监听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, (注意:不是/etc/ssh/ssh_config) 修改 /etc/ssh/sshd_config 找到 ###...
首先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. ...
希望用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 本文来自ChinaUnix博...
ssh是freebsd的远程控制,如何配置呢?看看这个! [separator] 首先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, 下面是我的配置文件:(/etc/ssh/sshd_config) ###########################################...
freebsd# wget http://openbsd.md5.com.ar/pub/OpenBSD/Openssh/portable/openssh-4.6p1.tar.gz freebsd# tar zvxf openssh-4.6p1.tar.gz freebsd# cd openssh-4.6p1 freebsd# ./configure --prefix=/usr --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh --with-tcp-wrappers --without-zlib-version-check --with-pam --with-md5-passwords freebsd# make 备份原有的程序文件,防止升级失败 freebsd# mv /usr/sbin/ss...
首先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, 下面是我的配置文件:(/etc/ssh/sshd_config) #################################################### # $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:...
我的freebsd的ssh已经开了,用netstat也可以看到22号口了,但是用RCT登录的时候报下面的错误,请大侠诊断: could not load host key : /etc/ssh/ssh_host_dsa_key 这该怎么解决啊?
我用vmware已经安装成功了freebsd5.3,网络部分已经通了,但我用别的电脑ssh连过去,却不成功,提示是什么认证方面的问题, telnet 192.168.0.xx 22过去,freebsd5.3 ssh已经起了,请高手指点一下
为什么安装好的freebsd系统都没有办法用ssh连接上呢? 在Windows下面使用各种ssh工具,想连接上freebsd,可就是不行。 情况是:进入了ssh界面,要求输入密码(这步正确),然后输入正确的密码,然后系统提示,密码错误。 没有办法啦。 需要在/etc/下面做什么配置吗? 是ssh1还是ssh2哦? 是DEA还是什么? 哦,晕哦! :em16: