[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#531069: marked as done (document ssh-add unexplained behaviors)



Your message dated Sat, 30 May 2009 19:32:38 +0100
with message-id <20090530183238.GU25892@riva.ucam.org>
and subject line Re: Bug#531069: document ssh-add unexplained behaviors
has caused the Debian Bug report #531069,
regarding document ssh-add unexplained behaviors
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
531069: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531069
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: openssh-client
Version: 1:5.1p1-5+b1
Severity: wishlist
File: /usr/share/man/man1/ssh-add.1.gz

The man page says
DESCRIPTION
     ssh-add adds RSA or DSA identities to the authentication agent, ssh-agent(1).  When run without arguments, it adds
     the files ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity.  Alternative file names can be given on the command
     line.  If any file requires a passphrase, ssh-add asks for the passphrase from the user.  The passphrase is read
     from the user's tty.  ssh-add retries the last passphrase if multiple identity files are given.

     The authentication agent must be running and the SSH_AUTH_SOCK environment variable must contain the name of its
     socket for ssh-add to work.
All I know is
$ cp -a .ssh /tmp
$ ssh-add
Identity added: /home/jidanni/.ssh/id_rsa (/home/jidanni/.ssh/id_rsa)
$ diff -r .ssh /tmp/.ssh/ #So we see that it did not add anything after all!
$ mv .ssh .sshN
$ ssh-add #exits 1, with no error message
$ diff -r .ssh /tmp/.ssh/
diff: .ssh: No such file or directory #so we see that it does nothing.

The above three #commented behaviors need to be mentioned on the man
page. Nowhere did it exit 2, even though I never did /etc/init.d/ssh
start, if that is the agent it is talking about.



--- End Message ---
--- Begin Message ---
On Sat, May 30, 2009 at 01:15:00AM +0800, jidanni@jidanni.org wrote:
> The man page says
> DESCRIPTION
>      ssh-add adds RSA or DSA identities to the authentication agent, ssh-agent(1).  When run without arguments, it adds
>      the files ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity.  Alternative file names can be given on the command
>      line.  If any file requires a passphrase, ssh-add asks for the passphrase from the user.  The passphrase is read
>      from the user's tty.  ssh-add retries the last passphrase if multiple identity files are given.
> 
>      The authentication agent must be running and the SSH_AUTH_SOCK environment variable must contain the name of its
>      socket for ssh-add to work.
> All I know is
> $ cp -a .ssh /tmp
> $ ssh-add
> Identity added: /home/jidanni/.ssh/id_rsa (/home/jidanni/.ssh/id_rsa)
> $ diff -r .ssh /tmp/.ssh/ #So we see that it did not add anything after all!

ssh-agent stores keys in memory; it does not edit any files in ~/.ssh.

-- 
Colin Watson                                       [cjwatson@debian.org]


--- End Message ---

Reply to: