From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chris.Bryant@DTAG.Com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Publickey authentication with ssh Date: Tue, 25 Nov 2003 14:04:19 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1069790710 963 80.91.224.253 (25 Nov 2003 20:05:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2003 20:05:10 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Nov 25 21:05:08 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 1AOjQp-0002Oa-00 for ; Tue, 25 Nov 2003 21:05:08 +0100 Original-Received: (qmail 13819 invoked by uid 5); 25 Nov 2003 20:04:58 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 13804 invoked by uid 49493); 25 Nov 2003 20:04:58 -0000 Original-Received: from Chris.Bryant@DTAG.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(-4.1/5.0):. Processed in 0.825672 secs); 25 Nov 2003 20:04:58 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 25 Nov 2003 20:04:57 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HOX0059CBS81H@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 25 Nov 2003 15:04:56 -0500 (EST) Original-Received: from tfyfw.thrifty.com ([65.64.34.2]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HOX00FMOBRRB2@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 25 Nov 2003 15:04:40 -0500 (EST) Original-Received: by tfyfw.thrifty.com; id OAA02699; Tue, 25 Nov 2003 14:08:54 -0600 (CST) Original-Received: from dtagimc.dtg.local(172.23.116.35) by tfyfw.thrifty.com via csmap (V1.5) id srcAAAWRkGh_; Tue, 25 Nov 2003 14:08:53 -0600 Original-Received: by dtagimc.dtg.local with Internet Mail Service (5.5.2656.59) id ; Tue, 25 Nov 2003 14:04:11 -0600 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2656.59) Xref: main.gmane.org gmane.os.tru64.managers:5914 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5914 Thanks to Jenny Butler, Paul Moore, Joe Senulis, and Alan Anderson for their responses. Basiclly to get public key authentication to work I had to copy my public key from my source node to my target node and add the entry into the identification file of my source node and an entry in the target nodes authenticaion file the entry was Key user-host.pub. Thanks again, Chris -----Original Message----- From: Chris Bryant Sent: Monday, November 24, 2003 2:01 PM To: tru64-unix-managers@ornl.gov Subject: Publickey authentication with ssh Admins, I am running tru64 5.1B and I am trying to setup publickey authentication with secure shell. In my /etc/ssh2/ssh2_config file I have AllowedAuthenication publickey,password and in /etc/ssh2/sshd_config file I have AllowedAuthenication publickey,password. Below is my output from ssh -v hostname. I get publickey disabled. Any Idea as to what could be causing this? TIA, Chris Bryant Unix Administrator Dollar Thrifty Automotive Group Script started on Mon Nov 24 13:55:21 2003 $ ssh -v country debug: SshAppCommon/sshappcommon.c:185: Allocating global SshRegex context. debug: SshConfig/sshconfig.c:2786: Version not found on first line, assuming configuration to be old style. debug: SshConfig/sshconfig.c:640: Setting variable 'VerboseMode' to 'FALSE'. debug: SshConfig/sshconfig.c:2728: Unable to open /usr/users/cbryant/.ssh2/ssh2_config debug: Connecting to country, port 22... (SOCKS not used) debug: Ssh2/ssh2.c:2332: Entering event loop. debug: Ssh2Client/sshclient.c:1452: Creating transport protocol. debug: SshAuthMethodClient/sshauthmethodc.c:95: Added "publickey" to usable methods. debug: SshAuthMethodClient/sshauthmethodc.c:95: Added "password" to usable methods. debug: Ssh2Client/sshclient.c:1493: Creating userauth protocol. debug: client supports 2 auth methods: 'publickey,password' debug: SshUnixTcp/sshunixtcp.c:1227: using local hostname town debug: Ssh2Common/sshcommon.c:541: local ip = 158.146.77.17, local port = 4558 debug: Ssh2Common/sshcommon.c:543: remote ip = 158.146.77.18, remote port = 22 debug: SshConnection/sshconn.c:1957: Wrapping... debug: SshReadLine/sshreadline.c:3388: Initializing ReadLine... debug: Remote version: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX debug: Major: 3 Minor: 2 Revision: 0 debug: Ssh2Transport/trcommon.c:1913: lang s to c: `', lang c to s: `' debug: Ssh2Transport/trcommon.c:1978: c_to_s: cipher aes128-cbc, mac hmac-sha1, compression none debug: Ssh2Transport/trcommon.c:1981: s_to_c: cipher aes128-cbc, mac hmac-sha1, compression none debug: Remote host key found from database. debug: Ssh2Common/sshcommon.c:342: Received SSH_CROSS_STARTUP packet from connection protocol. debug: Ssh2Common/sshcommon.c:392: Received SSH_CROSS_ALGORITHMS packet from connection protocol. debug: server offers auth methods 'publickey,password'. debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1602: adding keyfile "/usr/users/cbryant/.ssh2/id_dsa_1024_a" to candidates debug: server offers auth methods 'publickey,password'. debug: Ssh2AuthClient/sshauthc.c:330: Method 'publickey' disabled. debug: server offers auth methods 'publickey,password'. debug: Ssh2AuthPasswdClient/authc-passwd.c:117: Starting password query... cbryant's password: debug: Ssh2Common/sshcommon.c:310: Received SSH_CROSS_AUTHENTICATED packet from connection protocol. debug: SshReadLine/sshreadline.c:3454: Uninitializing ReadLine... Authentication successful. debug: Ssh2Common/sshcommon.c:852: num_channels now 1 warning: Cannot connect to DISPLAY; X11 forwarding disabled. Last successful login for cbryant: Mon Nov 24 12:41:37 CST 2003 from town Last unsuccessful login for cbryant: NEVER Your password will expire on Sat Nov 29 08:15:49 CST 2003 Compaq Tru64 UNIX V5.1B (Rev. 2650); Tue Aug 12 05:56:24 CDT 2003 No mail. country> exit debug: Ssh2ChannelSession/sshchsession.c:1935: received exit status : 0 debug: Ssh2Common/sshcommon.c:819: num_channels now 0 debug: Got session close with exit_status=0 debug: destroying client struct... debug: Ssh2Client/sshclient.c:1528: Destroying client. debug: SshConfig/sshconfig.c:2330: Freeing pki. (host_pki != NULL, user_pki = NULL) debug: SshConnection/sshconn.c:2009: Destroying SshConn object. Connection to country closed. debug: Ssh2Client/sshclient.c:1596: Destroying client completed. debug: SshAuthMethodClient/sshauthmethodc.c:100: Destroying authentication method array. debug: SshAppCommon/sshappcommon.c:198: Freeing global SshRegex context. debug: SshConfig/sshconfig.c:2330: Freeing pki. (host_pki = NULL, user_pki = NULL) $ exit script done on Mon Nov 24 13:55:34 2003