From: Andreas Dilger <adilger@turbolabs.com>
To: Larry McVoy <lm@work.bitmover.com>, linux-kernel@vger.kernel.org
Subject: Re: pull vs push (was Re: [bk patch] Make cardbus compile in -pre4)
Date: Sat, 9 Feb 2002 17:19:19 -0700 [thread overview]
Message-ID: <20020209171919.D9826@lynx.turbolabs.com> (raw)
In-Reply-To: <20020209181213.GA32401@come.alcove-fr> <Pine.LNX.4.33.0202091241080.1196-100000@home.transmeta.com> <20020209201252.GD32401@come.alcove-fr> <20020209122649.E13735@work.bitmover.com>
In-Reply-To: <20020209122649.E13735@work.bitmover.com>; from lm@bitmover.com on Sat, Feb 09, 2002 at 12:26:49PM -0800
On Feb 09, 2002 12:26 -0800, Larry McVoy wrote:
> This is my problem. You could help if you could tell me what exactly
> are the magic wands to wave such that you can ssh in without typing
> a password. I know about ssh-agent but that doesn't help for this,
> I know that in certain cases ssh lets me in without anything. I thought
> there was some routine where you ssh-ed one way and then the other way
> and it left enough state that it trusted you, does any ssh genuis out
> there know what I'm talking about? If I have this, I can set up the
> cron job, I'm sure this is obvious and I'm just overlooking something
> but I can't find it.
OK, so to log in or run a command on a remote machine R, from your local
machine L, you need to have a copy of your public key L:~/.ssh/identity.pub
in the file R:~/.ssh/authorized_keys. You can have multiple keys in
R:~/.ssh/authorized_keys. When ssh'ing from L to R, you also need to
have L:~/.ssh/identity available and possibly type in a pass-phrase if
needed (for automated systems you probably do not want a pass-phrase,
so you set it up with its own key).
Just FYI, the rest of the story goes like:
If your L:~/.ssh/identity has a pass-phrase (or if you want to do multi-
hop ssh'ing, I think) you will probably want to use an ssh-agent to hold
all of your private keys. GDM (Gnome X login) will start ssh-agent for
you I believe, and then you have to do "ssh-add [identity file ...]" to
add one or more private keys to the ssh-agent, which will prompt you for a
pass-phrase if needed. If you have multiple private keys (identity files)
then newer versions of ssh-add will try the same pass-phrase for all of
them before prompting you again.
Then, when you ssh over to another machine, and that machine is listed
in /etc/ssh/ssh_config or .ssh/config as "ForwardAgent yes" it will
pass on your private key(s) to a new agent started on the remote machine,
which will allow you to do passwordless ssh to another machine, etc.
Likewise, as long as you have "ForwardX11 yes" for each machine in the
chain, you will be able to start an X session at the far end and it
will tunnel through all of the ssh hops to display on L's screen.
You probably want to have a pass-phrase on all of your private keys,
because if anyone ever could read your ~/.ssh/identity file, they can
effectively do anything you can do, and connect anywhere that has your
corresponding identity.pub file in the authorized_keys file without
a password.
Note also, for most new versions of SSH, it will try SSH protocol 2
before it tries SSH 1. This means that everywhere I said "identity"
it will use "id_dsa", "identity.pub" becomes "id_dsa.pub", and
"authorized_keys" becomes "authorized_keys2". You can change the default
order if you want with "Protocol 1,2" in your ~/.ssh/config file, or
you can add both your L:~/.ssh/identity and L:~/.ssh/id_dsa to the
ssh-agent, and add the id_dsa.pub to authorized_keys2.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
next prev parent reply other threads:[~2002-02-10 0:20 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-09 2:25 [bk patch] Make cardbus compile in -pre4 Patrick Mochel
2002-02-09 3:39 ` Andreas Dilger
2002-02-09 4:02 ` Jeff Garzik
2002-02-09 7:29 ` Andreas Dilger
2002-02-09 7:41 ` Larry McVoy
2002-02-10 2:39 ` Jeff Garzik
2002-02-10 3:52 ` Linus Torvalds
2002-02-10 7:47 ` Andreas Dilger
2002-02-10 20:57 ` Linus Torvalds
2002-02-11 18:38 ` Andreas Dilger
2002-02-09 5:12 ` Larry McVoy
2002-02-09 5:32 ` Andrew Morton
2002-02-09 9:36 ` Rob Landley
2002-02-09 9:57 ` Momchil Velikov
2002-02-09 10:01 ` Alexander Viro
2002-02-09 18:09 ` Rob Landley
2002-02-09 15:08 ` Daniel Phillips
2002-02-10 4:07 ` Linus Torvalds
2002-02-09 10:14 ` David Lang
2002-02-09 15:54 ` Larry McVoy
2002-02-09 16:50 ` Tom Rini
2002-02-09 17:05 ` Larry McVoy
2002-02-09 21:01 ` David Lang
2002-02-09 21:41 ` Larry McVoy
2002-02-09 23:36 ` Andreas Dilger
2002-02-09 23:45 ` Tom Rini
2002-02-10 0:42 ` Andreas Dilger
2002-02-09 23:52 ` Larry McVoy
2002-02-10 4:13 ` Linus Torvalds
2002-02-10 18:02 ` Tom Rini
2002-02-10 5:25 ` William Stearns
2002-02-11 17:30 ` Padraig Brady
2002-02-13 11:59 ` Padraig Brady
2002-02-09 9:27 ` pull vs push (was Re: [bk patch] Make cardbus compile in -pre4) Rob Landley
2002-02-09 10:08 ` Andreas Dilger
2002-02-09 18:12 ` Stelian Pop
2002-02-09 20:59 ` Linus Torvalds
2002-02-09 20:12 ` Stelian Pop
2002-02-09 20:26 ` Larry McVoy
2002-02-09 20:51 ` Stelian Pop
2002-02-09 23:45 ` Jeff Garzik
2002-02-09 23:49 ` Larry McVoy
2002-02-09 20:57 ` Pau Aliagas
2002-02-09 21:07 ` David Lang
2002-02-09 21:13 ` Pau Aliagas
2002-02-09 21:45 ` Rob Landley
2002-02-10 0:19 ` Andreas Dilger [this message]
2002-02-10 0:36 ` Herbert Xu
2002-02-10 0:54 ` ssh primer (was Re: pull vs push (was Re: [bk patch] Make cardbus compile in -pre4)) Jeff Garzik
2002-02-10 0:59 ` Herbert Xu
2002-02-10 1:24 ` Jeff Garzik
2002-02-10 8:13 ` Herbert Xu
2002-02-13 17:13 ` Aaron Lehmann
2002-02-14 0:22 ` Rob Landley
2002-02-14 6:57 ` Aaron Lehmann
2002-02-14 11:00 ` Harald Arnesen
2002-02-10 0:59 ` Ben Pfaff
2002-02-10 1:14 ` David Lang
2002-02-10 1:22 ` ssh primer (was Re: pull vs push (was Re: [bk patch] Make cardbuscompile " Jeff Garzik
2002-02-10 2:46 ` pull vs push (was Re: [bk patch] Make cardbus compile in -pre4) Alan Cox
2002-02-11 11:51 ` Pavel Machek
2002-02-11 18:42 ` John Alvord
2002-02-09 11:44 ` [bk patch] Make cardbus compile in -pre4 Peter Osterlund
[not found] <fa.hme158v.ki228f@ifi.uio.no>
[not found] ` <fa.h89cnvv.116ski0@ifi.uio.no>
2002-02-10 13:45 ` pull vs push (was Re: [bk patch] Make cardbus compile in -pre4) Terje Malmedal
2002-02-11 18:51 Jesse Pollard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020209171919.D9826@lynx.turbolabs.com \
--to=adilger@turbolabs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lm@work.bitmover.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®