From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Siebert, Aaron" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: SSH 2.5.2p2 on Tru64 4.0g Date: Thu, 16 Oct 2003 14:11:07 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <4E2CE3FB9E1B744482F6669A9AE2F72E7B9485@nstarexch1.windows.nagrastar.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1066336072 8523 80.91.224.253 (16 Oct 2003 20:27:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 20:27:52 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Oct 16 22:11:40 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AAETD-0004mq-00 for ; Thu, 16 Oct 2003 22:11:39 +0200 Original-Received: (qmail 16481 invoked by uid 5); 16 Oct 2003 20:11:28 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 16466 invoked by uid 49493); 16 Oct 2003 20:11:27 -0000 Original-Received: from aaron.siebert@nagrastar.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-3.0/5.0):. Processed in 0.7415 secs); 16 Oct 2003 20:11:27 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 16 Oct 2003 20:11:26 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HMV009W19EX8A@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 16 Oct 2003 16:11:25 -0400 (EDT) Original-Received: from nstarexch1.windows.nagrastar.com (nstarexch1.windows.nagrastar.com [208.46.80.200]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HMV00ACY9EKOU@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 16 Oct 2003 16:11:12 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.6249.0 Thread-Topic: SUMMARY: SSH 2.5.2p2 on Tru64 4.0g thread-index: AcOT+L49veLw7sIlS4+llSp61/tOOgAJrCUQ Content-Class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:5592 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5592 Thanks to everyone who responded. There were many great answers but in the end I figured it out on my own. Here is everyone's responses and the solution. 1. SSH is very particular about the permissions on the $HOME/.ssh directory. Ensure these are correct otherwise ssh will not properly read user configuration options.=20 2. When troubleshooting problems with SSH or SSHD use the -v (verbose ssh) -d (debug sshd) to troubleshoot. 3. Always pay particular attention the the ssh SERVERs protocol usage. Many admins remove protocol 1 from the configuration for security purposes and the server rejects pre-shared keys authentication (RSAAuthentication) when only using the identity.pub or rsa key. Here is a break down of my understanding of the ssh implementation for RSAAuthencation between protocol 1 and 2.=20 Protocol 1: must have a rsa1 type key generated and placed in the $HOME/.ssh/identity and identity.pub files respectively. You must copy the identity.pub entry to the remote host $HOME/.ssh/authorized_keys file. In many implementations you will reside behind a NAT firewall thus hiding proper name resolution. I was forced to edit the authorized_keys file on the remote host to reflect the host name without domain that was published on the internet. Even though the host name did not match the originating key. This will work if protocol 1 is enabled.=20 Protocol 2: Is a bit more confusing. There are 2 types of keys that you can generate, rsa and dsa. I believe there was a license/contractual issue with rsa and dsa was implemented to avoid legal issues. However in my instance they both worked but you are forced to tell ssh which key file to use from the client. In most cases I believe it tries to use the rsa key ($HOME/.ssh/id_rsa and id_rsa.pub) so that is the one I configured. If a key isn't already generated you must create one using "ssh-keygen -t rsa". Once created you will have your id_rsa.pub key to copy to the remote host $HOME/.ssh/authorized_keys file. However I did read somewhere that in some cases protocol 2 looks in an $HOME/.ssh/authorized_keys2 file. Mine worked in the first. The same host name editing applied to protocol to in the authorized_keys file.=20 TIA Original > Managers, >=20 > I am working to get RSAAuthentication working between 2 hosts. Both=20 > are Tru64 4.0g with SSH 2.5.2ps protocols 1.5 and 2. My sshd_config=20 > file has a RSAAuthentication yes and I have imported both the=20 > id_rsa.pub and identity.pub key to $HOME/.ssh/authorized_keys=20 > authorized_keys2 files for the user I would like to connect as.=20 > However, while authenticating I still receive a prompt for a password. > What am I missing? >=20 > TIA >=20 > Aaron Siebert > Nagrastar Customer Support Engineer > 303-706-5492 fax 303-706-5719 > Aaron.Siebert@NagraStar.com >=20