由 clr_1628 在 01-05-2003 00:24 发表:
openssh(3.5)的启动问题?
[root@www root]# cd /etc/rc.d/init.d
[root@www init.d]# ./sshd start
Starting sshd:Privilege separation user sshd does not exist
[FAILED]
[root@www init.d请大家帮忙看看这是什么意思呀?我用的是openssh(3.5),用源码安装的。以下是安装的步骤
$ ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-tcp-wrappers --with-ipv4-default --with-ssl-dir=/usr/include/openssl --with-md5-passwords;
make;make install.
ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
由 eTony 在 01-05-2003 00:34 发表:
你的/etc/rc.d/init.d 目录下有sshd么?
没有吧!
Seeking Freedom,pure Freedom!
http://211.92.88.40/~tony/
由 clr_1628 在 01-05-2003 10:43 发表:
[root@www root]# cd /etc/rc.d/init.d
[root@www init.d]# ls
anacron cWnn ipchains killall netfs proftpd single xfs
apmd functions iptables kudzu network random sshd xinetd
atd gpm kdcrotate linuxconf ntpd rawdevices syslog
crond halt keytable lpd portmap sendmail tWnn
[root@www init.d]#
由 clr_1628 在 01-05-2003 10:55 发表:
谢谢大家的帮忙!问题已经解决,原来是redhat2.1AS里没有sshd这个用户和组,添加一下就可以啦!谢谢!
由 大熊宝宝 在 01-06-2003 17:50 发表:
hoho ~~~~~~~~~~~~~~
请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.
新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了
由 clr_1628 在 01-06-2003 19:06 发表:
我在windows下用putty连接ssh服务器,有点问题,连不上,我的ssh服务器用的是3.5,密钥连接。在linux下我用ssh-keygen -d生成公私钥,把/root/.ssh/id_dsa.pub拷到windwos下来,并改名成authorized_keys2,但是我在windows下连接不上,在linux机(服务器)上直接用ssh登陆却没有问题呀,以下是连接记录,请大家帮忙看看,谢谢。安装方法我是按着这个文章来的。
http://www.linuxaid.com.cn/articles/9/1/910207857.shtml
只是把/etc/ssh/sshd_conf中的
PasswordAuthentication yes 改为
PasswordAuthentication no
未做其它改动。
login as: root
Sent username "root"
Trying public key authentication.
Key is of wrong type (not a private key)
[email protected]'s password:
Access denied
[email protected]'s password:
login as: root
Sent username "root"
Trying public key authentication.
Key is of wrong type (not a private key)
[email protected]'s password:
Access denied
[email protected]'s password:2003-01-05 23:34:12 Looking up host "192.168.1.3"
2003-01-05 23:34:12 Connecting to 192.168.1.3 port 22
2003-01-05 23:34:12 Server version: SSH-1.99-OpenSSH_3.5p1
2003-01-05 23:34:12 We claim version: SSH-2.0-PuTTY-Snapshot-2002-09-19
2003-01-05 23:34:12 Using SSH protocol version 2
2003-01-05 23:34:12 Doing Diffie-Hellman group exchange
2003-01-05 23:34:12 Doing Diffie-Hellman key exchange
2003-01-05 23:34:16 Host key fingerprint is:
2003-01-05 23:34:16 ssh-rsa 1024 c3:73:e6:eb:09:7c:67:da:54:1a:ce:c2:b3:91:a4:b4
2003-01-05 23:34:16 Initialised AES-256 client->server encryption
2003-01-05 23:34:16 Initialised AES-256 server->client encryption
由 clr_1628 在 01-06-2003 19:11 发表:
我试过用记事本把authorized_keys2文件另存为authorized_keys2文本文件,也不行呀,错误还是一样,那位朋友帮帮忙看看,谢谢了
由 eTony 在 01-06-2003 19:31 发表:
在windows下你如何生成的密钥对,
你把私钥放到哪里了???
Seeking Freedom,pure Freedom!
http://211.92.88.40/~tony/
由 clr_1628 在 01-06-2003 20:29 发表:
在linux下我用ssh-keygen -d生成公私钥,在/root/.ssh/目录下,把/root/.ssh/id_dsa.pub拷到windwos下来,并改名成authorized_keys2,但是我在windows下连接不上,就是这样的呀,兄弟们帮帮忙吧!谢谢!
由 eTony 在 01-06-2003 20:42 发表:
公钥应该放在服务器端
私钥放在客户端
Seeking Freedom,pure Freedom!
http://211.92.88.40/~tony/
由 clr_1628 在 01-06-2003 23:25 发表:
再次谢谢兄弟的帮忙,不过还是不行,还有有点问题?还得再请兄弟们看看是那的问题?
[root@www root]# cd /root/.ssh
[root@www .ssh]# ls -l -a
total 16
drw-r--r-- 2 root root 4096 1冥 6 22:30 .
drwxr-x--- 15 root root 4096 1冥 6 23:21 ..
-rw-r--r-- 1 root root 736 1冥 5 18:35 id_dsa
-rw-r--r-- 1 root root 611 1冥 5 18:35 id_dsa.pub
[root@www .ssh]#
我把/root/.ssh/id_dsa拷到windows电脑上,并改名成authorized_keys2,结果再用putty还是连接不上去,这是putty的提示:2003-01-06 23:18:39 Looking up host "192.168.1.3"
2003-01-06 23:18:39 Connecting to 192.168.1.3 port 22
2003-01-06 23:18:39 Server version: SSH-1.99-OpenSSH_3.5p1
2003-01-06 23:18:39 We claim version: SSH-1.5-PuTTY-Snapshot-2002-09-19
2003-01-06 23:18:39 Using SSH protocol version 1
2003-01-06 23:18:39 Received public keys
2003-01-06 23:18:39 Host key fingerprint is:
2003-01-06 23:18:39 1024 a6:0e:50:4e:80:b9:e4:2a:d0:fd:c9💿1d:1b:60:73
2003-01-06 23:18:39 Encrypted session key
2003-01-06 23:18:39 AES not supported in SSH1, skipping
2003-01-06 23:18:39 Using Blowfish encryption
2003-01-06 23:18:39 Trying to enable encryption...
2003-01-06 23:18:39 Initialised Blowfish encryption