l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2006 Feb 02 08:48

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Using public/private keys was [OT] Pumping a passwordusing Expect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Using public/private keys was [OT] Pumping a passwordusing Expect



Apologies for the late follow-up.

on Mon, Jan 09, 2006 at 10:11:11AM -0700, timriley (timriley@appahost.com) wrote:
> 
> 
> 
> ---------- Original Message ----------------------------------
> From: "Karsten M. Self" <kmself@ix.netcom.com>
> Reply-To: "lugod's technical discussion forum" <vox-tech@lists.lugod.org>
> Date:  Fri, 6 Jan 2006 12:17:22 -0800
> 
> > What learning curve?
> >
> >   # Test to see if you've got a key, if not, create one.
> >   test -f ~/.ssh/id_dsa.pub || ssh-keygen -t dsa -N "passphrase"
> >
> >   # Copy key to remote host
> >   ssh ~/.ssh/id_dsa.pub user@remotehost 'mkdir .ssh; \
> >       touch .ssh/authorized_keys; chmod 600 .ssh/authorized_keys; \
> >       cat >> .ssh/authorized_keys'
> >
> >   # Test to see if ssh-agent is running, if not, start it.
> >   test [ "$SSH_AGENT_PID"x -ne x ] && ps $SSH_AGENT_PID ||
> >       eval ssh_agent
> >
> >   # enter passphrase
> >   ssh-add  
> >
> >... You've now got the ability to do stuff like:
> >
> >  ssh user@remothost 'command [; command ...]'
> >
> >... without having to enter a passphrase each time.
> 
> Thanks for a bee-line to the solution. However, the following
> errors were generated:
> 
> 1) ssh-keygen: invalid option -- t

What version of ssh-keygen and/or the SSH packages do you have?

I'm using Debian's ssh, which is really OpenSSH v2.

Read your local ssh-keygen manpage and check to see what if any options
it requires to specify keytype.  Usual keytypes are 'dsa' or 'rsa' for
version 2, or 'rsa1' for SSH version 1.


> 2) bash: ssh_agent: command not found

Should be "ssh-agent", not "ssh_agent", my typo.

> 3) ssh-add: Could not open a connection to your authentication agent.

That would be the problem of the above.  Once sorted, should work.


Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
  The revolution will not be televised.
  You can apt-get it from the usual mirrors, however.   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!