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:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 24: LUGOD election season has begun!
Page last updated:
2006 Jan 10 16:14

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





---------- 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
2) bash: ssh_agent: command not found
3) ssh-add: Could not open a connection to your authentication agent.

The learning begins... ;-)
 
_______________________________________________
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:
EDGE Tech Corp.
For donating some give-aways for our meetings.