From: Stephen Samuel <samuel@bcgreen.com>
To: Keith Morse <kgmorse@mpcu.com>
Cc: "Matt Hemingway" <matt.hemingway@pcnalert.com>,
"Gerd Müller" <gerd.bomber.mueller@web.de>,
linux-admin@vger.kernel.org
Subject: Re: SSH Athentification with public key
Date: Wed, 28 May 2003 16:06:36 -0700 [thread overview]
Message-ID: <3ED540FC.5060201@bcgreen.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305271537570.11982-100000@antares.mpcu.com>
Keith Morse wrote:
>
>
> So far, the following is my favorite way of doing this.
>
> function putkey {
> [ $# -eq 1 ] || return 1
> { fgrep -q $1 /etc/hosts || host $1 > /dev/null; } || return 1
> cat $HOME/.ssh/id_dsa.pub | ssh $1 'cat >> .ssh/authorized_keys'
> }
>
>
>
> You'll need to adjust accordingly for rsa keys.
cat $HOME/.ssh/id_?sa.pub | ssh $1 'cat >> .ssh/authorized_keys'
The question mark should get both dsa and rsa keys in one shot.
--
Stephen Samuel +1(604)876-0426 samuel@bcgreen.com
http://www.bcgreen.com/~samuel/
Powerful committed communication, reaching through fear, uncertainty and
doubt to touch the jewel within each person and bring it to life.
next prev parent reply other threads:[~2003-05-28 23:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-27 7:30 SSH Athentification with public key Gerd Müller
2003-05-27 14:57 ` Matt Hemingway
2003-05-27 22:40 ` Keith Morse
2003-05-28 23:06 ` Stephen Samuel [this message]
2003-06-02 16:48 ` Keith Morse
2003-05-27 17:22 ` Stephen Samuel
2003-05-27 17:55 ` Mikel Bauer
2003-05-27 18:12 ` Jean M. Bouchara
2003-05-27 21:15 ` pacho baratta
2003-05-28 6:31 ` Solved: " Gerd Müller
-- strict thread matches above, loose matches on Subject: below --
2003-05-27 18:08 gerardo juarez-mondragon
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=3ED540FC.5060201@bcgreen.com \
--to=samuel@bcgreen.com \
--cc=gerd.bomber.mueller@web.de \
--cc=kgmorse@mpcu.com \
--cc=linux-admin@vger.kernel.org \
--cc=matt.hemingway@pcnalert.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.