From owner-freebsd-questions Thu Aug 1 7:29:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60F6D37B400 for ; Thu, 1 Aug 2002 07:29:10 -0700 (PDT) Received: from face.atnet.at (face.atnet.at [194.152.160.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3454E43E3B for ; Thu, 1 Aug 2002 07:29:09 -0700 (PDT) (envelope-from christian@schmied.cc) Received: (qmail 3554 invoked by uid 0); 1 Aug 2002 14:29:06 -0000 Received: from unknown (HELO 101d0037) (christian@schmied.cc@194.24.130.13) by face.atnet.at with SMTP; 1 Aug 2002 14:29:06 -0000 From: "Christian Schmied" To: "'Morse, Richard E.'" Cc: Subject: RE: Question about ssh setup... Date: Thu, 1 Aug 2002 16:29:06 +0200 Message-ID: <5E34D857F6BB704CA3369B7553233A8103713749@ntsviemxs0152.connect.at-work.ent> 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, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <375F68784081D511908A00508BE3BB1701EF1D61@phsexch22.mgh.harvard.edu> 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 hi, rhosts is not a good idea because of a security risk. try private/public key authentication, this works fine for scripts.... but be carefull openssh and ssh2 have different keys! if the server has a different version, then you have to convert the keys with ssh-keygen. Chris. -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Morse, Richard E. Sent: Donnerstag, 01. August 2002 16:14 To: 'questions@freebsd.org' Subject: Question about ssh setup... Hi! I have a problem -- I have a user who wants to be able to connect to my server via a script, get a directory listing, then use scp to copy some files off. The problem is that ssh (which is the only way to connect) doesn't allow you to pass the password to it as a parameter (which is a good thing, I guess). As this script runs around midnight, this presents a problem. I've tried to set up ssh to use the RHostsRSAEncryption, with a .shosts file, but it still prompts for a password when he tries to login. The machine he is connecting from is in the ~/.ssh/known_hosts file, and I set up the .shosts file with the machine that he will be connecting from and his user name. Is there anything else that I need to set up for this to work? Thanks, Ricky ----------------------------------------------------- Richard Morse System Administrator MGH Biostatistics Center 50 Staniford St. Rm 560 remorse@partners.org 617/724-9830 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message