Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jun 2005 14:38:39 -0600
From:      Nathan Kinkade <nkinkade@ub.edu.bz>
To:        Steven Friedrich <FreeBSD@InsightBB.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: can't figure out ssh, read lots of docs...
Message-ID:  <20050601203839.GH21127@gentoo-npk.bmp.ub>
In-Reply-To: <429E0B57.2070701@scls.lib.wi.us>
References:  <200506011449.45455.FreeBSD@InsightBB.com> <429E0B57.2070701@scls.lib.wi.us>

next in thread | previous in thread | raw e-mail | index | archive | help

--VousOZe2B5HJrJZY
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jun 01, 2005 at 02:24:07PM -0500, Greg Barniskis wrote:
> Steven Friedrich wrote:
> >I'm trying to use scp and I get prompted for a password or passphrase fo=
r=20
> >each invocation.
> >
> >I figure I need to figure out how to get ssh to connect without promptin=
g,=20
> >but I just can't get it.  I've read all the man pages and my head is=20
> >swirling.  I went to the OpenSSH web site and got no further.  I've been=
=20
> >in the business for 28 years and can usually figure things out from man=
=20
> >pages, but ssh doesn't seem to be clear enough.  I've been unemployed fo=
r=20
> >over a year and can't afford the OReilly book right now (which I'm=20
> >offering as my defense for asking here).
> >
>
<snip>
> (the sshd server). Since what you say you want is real transparency=20
> (no prompts), don't assign a passphrase when generating the keys.
<snkp>
>
> Greg Barniskis, Computer Systems Integrator

The poster is correct in that what you probably what to do is setup
public-key authentication using ssh, however, I would highly recommend
that you NOT use a blank passphrase for your private key.  ssh-agent, a
utility that I think comes standard with the openssh package will store
your passphrase for a given login session and automatically supply it
for you so that you don't have to type the passphrase each time.  Check
the manpage for ssh-agent(1).  To make it even more convenient there is
nice little shell script program called keychain that will manage your
passphrases for all login sessions at once.  With keychain you will only
have to supply your passphrase(s) once when you first login or boot your
system and that's it.  I don't think leaving a private key around on
your system without a passphrase is a good idea, and especially if you
are using it to automatically authenticate to a remote machine.
Keychain is in the ports collection.

http://www.gentoo.org/proj/en/keychain/

Nathan

--VousOZe2B5HJrJZY
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCnhzPO0ZIEthSfkkRAkuqAKDpLX4Gpy4kXSFKmmNXopNx5qsejQCdHquK
4jOvDrr7VYUTqw+srf/b7rE=
=itOW
-----END PGP SIGNATURE-----

--VousOZe2B5HJrJZY--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050601203839.GH21127>