[PLUG] SSH/SCP: Passphrase lost

Elliott Mitchell ehem at m5p.com
Wed Sep 22 20:14:02 UTC 2004


>From: Rich Shepard <rshepard at appl-ecosys.com>
>    I think that I broke something in my ssh setup when I migrated to the new
> distribution. The ~/.ssh/known_hosts file on the system has only my
> notebook. As a matter of fact, I sync'd the two so that all the files on the
> workstation are copied to the notebook.
> 
>    But, when I ssh from the notebook to the workstation I'm no longer asked
> for my passphrase, only my password. Do I need to run key-gen again and make
> sure that the keys and passwords are the same on both boxes?

The answer to your explicit question, running ssh-keygen again, is no.
The keys don't know when you change hardware, nor do they know when you
change IP addresses.

Your implicit question, "how do I get this working" is more difficult.
Start off with using "-v" on your client. The verbose messages are *very*
useful for figuring out what is up. Did you copy over your personal keys?
Did you replace or move your host keys? If the IP addresses changed, did
you tell it about that?


>From: "Kenneth G. Stephens" <kens at cad2cam.com>
> On Wed, 2004-09-22 at 10:50, Rich Shepard wrote:
> >    I think that I broke something in my ssh setup when I migrated to the new
> > distribution. The ~/.ssh/known_hosts file on the system has only my
> > notebook. As a matter of fact, I sync'd the two so that all the files on the
> > workstation are copied to the notebook.
> > 
> >    But, when I ssh from the notebook to the workstation I'm no longer asked
> > for my passphrase, only my password. Do I need to run key-gen again and make
> > sure that the keys and passwords are the same on both boxes?

> You did say that you old RedHat username had a different UID than your
> current username.  You may need to chown to your current UID.

Irrelevant. A number of network programs like UIDs to be lined up;
however, SSH is not one of them. If UIDs change SSH doesn't care in the
slightest (as long as the files still belong to the right person).


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \   (    |         EHeM at gremlin.m5p.com PGP 8881EF59         |    )   /
  \_  \   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
    \___\_|_/82 04 A1 3C C7 B1 37 2A*E3 6E 84 DA 97 4C 40 E6\_|_/___/






More information about the PLUG mailing list