From owner-freebsd-questions@FreeBSD.ORG Wed Jun 1 19:26:13 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 06CA316A41C for ; Wed, 1 Jun 2005 19:26:13 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from mail.scls.lib.wi.us (mail.scls.lib.wi.us [198.150.40.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3B7A43D49 for ; Wed, 1 Jun 2005 19:26:12 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from [172.26.2.238] ([172.26.2.238]) by mail.scls.lib.wi.us (8.12.9p2/8.12.9) with ESMTP id j51JQBXm016055; Wed, 1 Jun 2005 14:26:11 -0500 (CDT) (envelope-from nalists@scls.lib.wi.us) Message-ID: <429E0B57.2070701@scls.lib.wi.us> Date: Wed, 01 Jun 2005 14:24:07 -0500 From: Greg Barniskis User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Friedrich References: <200506011449.45455.FreeBSD@InsightBB.com> In-Reply-To: <200506011449.45455.FreeBSD@InsightBB.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: can't figure out ssh, read lots of docs... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 19:26:13 -0000 Steven Friedrich wrote: > I'm trying to use scp and I get prompted for a password or passphrase for each > invocation. > > I figure I need to figure out how to get ssh to connect without prompting, but > I just can't get it. I've read all the man pages and my head is swirling. I > went to the OpenSSH web site and got no further. I've been in the business > for 28 years and can usually figure things out from man pages, but ssh > doesn't seem to be clear enough. I've been unemployed for over a year and > can't afford the OReilly book right now (which I'm offering as my defense for > asking here). > > I've got two free chapters from the OReilly book, but they don't help. > > I've used ssh-keygen and I'm trying to login to the localhost (using it's > hostname). > > Anybody know of a short tutorial that just works? I too had to read a lot of pages before getting the requisite "aha!" moment for this feature, but what you need is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/openssh.html Section 14.11.6 is awfully short, but it does summarize the relevant information. Basically, you take the public key generated for "username" on one machine (the ssh client) and append it to the authorized_keys file for the same "username" on the other machine (the sshd server). Since what you say you want is real transparency (no prompts), don't assign a passphrase when generating the keys. If you've already gotten that far, using ssh -v[vv] can help you isolate where things are going wrong. -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) , (608) 266-6348