[ale] automating an ssh script?

ChangingLINKS.com x3 at ChangingLINKS.com
Thu Jul 25 00:20:08 EDT 2002


K, I was following the directions on:
http://www-106.ibm.com/developerworks/linux/library/l-keyc2/
to try to get ssh-agent to work. Unfortunately, I ran into something
that does not seem to be covered by the directions. 

I got to a point where it wanted my passphrase. I hit it with 
every passphrase I could think of and . . . see result below.
Here's the history:

Question? Does anyone know what is going on?

[werd at funker werd]$ ssh-agent 
SSH_AUTH_SOCK=/tmp/ssh-XXRTZLfH/agent.3271; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3272; export SSH_AGENT_PID;
echo Agent pid 3272;
[werd at funker werd]$ 
[werd at funker werd]$ 
[werd at funker werd]$ 
[werd at funker werd]$ eval `ssh-agent`
Agent pid 3274
[werd at funker werd]$ ssh-add ~/.ssh/identity
/home/werd/.ssh/identity: No such file or directory
[werd at funker werd]$ touch  ~/.ssh/identity
[werd at funker werd]$  ssh-add ~/.ssh/identity
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/home/werd/.ssh/identity' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /home/werd/.ssh/identity
Enter passphrase for /home/werd/.ssh/identity: 

[werd at funker werd]$ chmod 700 /home/werd/.ssh/identity
[werd at funker werd]$  ssh-add ~/.ssh/identity
Enter passphrase for /home/werd/.ssh/identity: 
Bad passphrase, try again: 
Bad passphrase, try again: 
Bad passphrase, try again: 
Bad passphrase, try again: 
Bad passphrase, try again: 
Bad passphrase, try again: 


On Wednesday 24 July 2002 22:56, Fletch wrote:
> >>>>> "Me" == fletch  <fletch at phydeaux.org> writes:
>
> [...]
>
>     Me>         Take a look at the ssh/sshd/ssh-keygen/ssh-agent
>     Me> manual pages.  If you set things up to use RSA or DSA based
>     Me> keys you can get away without typing passwords.
>
>
>         The following is a series of articles on setting up openssh to
> use keys:
>
> http://www-106.ibm.com/developerworks/linux/library/l-keyc.html
> http://www-106.ibm.com/developerworks/linux/library/l-keyc2/
> http://www-106.ibm.com/developerworks/linux/library/l-keyc3/

-- 
Wishing you Happiness, Joy and Laughter,
Drew Brown
http://www.ChangingLINKS.com

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list