From owner-freebsd-questions Sat Dec 8 10:12:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from amsfep12-int.chello.nl (amsfep12-int.chello.nl [213.46.243.17]) by hub.freebsd.org (Postfix) with ESMTP id 72E2E37B417 for ; Sat, 8 Dec 2001 10:12:09 -0800 (PST) Received: from boss ([62.163.120.117]) by amsfep12-int.chello.nl (InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with SMTP id <20011208181207.FLTR17273.amsfep12-int.chello.nl@boss>; Sat, 8 Dec 2001 19:12:07 +0100 From: "Rick Hoppe" To: "Exaltarea Spiritului Ludi" , Subject: RE: About sshd Date: Sat, 8 Dec 2001 19:12:33 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I want to remouve the OpenSSH 2.3.0 package and put OpenSSh 3.0.2 but i > can remove the first. I tried using pkg_remove but isn't working. > The old one was installed at installation time. > And it's about FreeBSD 4.3-RELEASE on i386 box. > i downloaded the sources, i configured it and installed but isn't work... > > how do I remove the old one and put the new one? Maybe I can help you by telling you how I managed to install the new version of OpenSSH, but I'm not totally sure if this is the right way. This is what I did: I've downloaded the new port-skeleton for openssh-portable from ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/security/openssh-p ortable/ and with that I replaced all contents in /usr/ports/security/openssh-portable After that I did a "make install" from within the directory /usr/ports/security/openssh-portable After a few minutes a new OpenSSH daemon was placed in /usr/local/sbin, so I had to change the /etc/rc.conf file. Below the line sshd_enable I added the following new line: sshd_program="/usr/local/sbin/sshd" I also modified the new sshd_config (in /usr/local/etc) by uncommenting and changing the following line: Protocol 2 I also renamed the old SSH version in /usr/sbin/sshd to /usr/sbin/sshd.old and chmod'ed to 400 After a reboot the new OpenSSH 3.0.2p1 was automatically started, and now accepts SSH2 only connections. If this doesn't work for you, please reply and include some errors you get. Regards, Rick Hoppe Junior System Administrator Xtraxion Internet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message