谁有openssh新版安装指南

由 xchen 在 08-03-2002 00:01 发表:

谁有openssh新版安装指南

谁成功安装过3.4p1版本的openssh?


由 北南南北 在 08-03-2002 00:05 发表:


请兄弟说明一下这个软件是做什么用的,这样弟兄们就能发挥群体的力量解决了。。这个帖子也置顶讨论。。。

多谢!!


===========================

请弟兄们发帖时要写个好标题,多谢!

===========================

每天以1000KM/H的速度在跑,感觉还是时间不够:(

“西学东渐,洋为中用” + 创造 = ?

linux ppc


由 xchen 在 08-03-2002 08:10 发表:

就是那个代替telnet的玩意儿嘛

就是那个代替telnet的玩意儿嘛,rh72里会默认安装的,帮来是2.9X版,但是据说有bug,所以我就升级到3.4p1版( www.openssh.com下载 ),但是配置好像和原来有所区别,所以一直没成功。


由 xchen 在 08-03-2002 14:33 发表:

瞎搞一通,终于成功

没办法,找不到答案,我自己又急着用,只能自己瞎搞了,还好,幸运之神总是对我十分的恩宠,下面说说我的安装过程:

1、软件包下载:

ftp://ftp.openbsd.org/pub/OpenBSD/O...sh-3.4p1.tar.gz

2、tar zxvf openssh-3.4p1.tar.gz

3、cd openssh-3.41

./configure --prefix=/usr/local/ssh \

--sysconfdir=/etc/ssh \

--with-tcp-wrappers \

--with-ipv4-default \

--with-md5-passwords

4、make

5、make install

注:安装完成以后,会自动生成主机密钥,还会提示需要sshd用户帐号,可用useradd加一个sshd用户,不过我最后测试,好像没有sshd帐号也行。

6、install /contrib/redhat/sshd.pam /etc/pam.d/sshd

7、cp contrib/redhat/sshd.init /etc/rc.d/init.d/sshd

cd /etc/rc.d/init.d

chkconfig --level 3 sshd on ;配置成系统服务

8、[root@mineserver root]# cat /etc/ssh/ssh_config

Host *

ForwardAgent no

ForwardX11 no

RhostsAuthentication no

RhostsRSAAuthentication no

RSAAuthentication yes

PasswordAuthentication yes

BatchMode no

CheckHostIP yes

StrictHostKeyChecking ask

IdentityFile ~/.ssh/identity

Port 22

Cipher 3des

EscapeChar ~

9、[root@mineserver root]# cat /etc/ssh/sshd_config

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ssh/bin

Port 22

ListenAddress 0.0.0.0

ListenAddress ::

HostKey /etc/ssh/ssh_host_key

HostKey /etc/ssh/ssh_host_rsa_key

HostKey /etc/ssh/ssh_host_dsa_key

KeyRegenerationInterval 3600

ServerKeyBits 768

SyslogFacility AUTH

LogLevel INFO

LoginGraceTime 600

#PermitRootLogin yes #还是不要让root直接登录为妙!

StrictModes yes

RSAAuthentication yes

PubkeyAuthentication yes

RhostsAuthentication no

IgnoreRhosts yes

RhostsRSAAuthentication no

HostbasedAuthentication no

IgnoreUserKnownHosts no

Pa

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus