Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

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

ssh (open)

Hash: SHA1

Content-Type: text/plain; charset=us-ascii

jbk <jbk at> writes:

> What I would like to know is, is it possible to set up the login process 
> so I don't have to enter my password each time? My username is different 
> between machines.

That's what ssh-agent is for. I haven't tried it on Windows, but I would 
expect that it would work pretty much the same there, particularly if 
running it from within cygwin's bash shell.

Under Unix, you'd run ssh-agent, which would print out a couple of 
environment variables that allow the other openssh programs to find the 
running ssh-agent process. You'd then set these in your current shell. 
The easiest way to do this is to combine the two with bash's built-in
"eval" function:

    % eval $(ssh-agent)
or the old style, if you're running a shell other than bash:
    eval `ssh-agent`

Now you run "ssh-add" once; it prompts you for your pass phrase, then 
sends your key to the running ssh-agent process.

After this, when you run ssh (or sftp, scp, etc), it will check with 
ssh-agent for an authorized key, and won't ask you for a password unless 
it can't find one.

I'm assuming here that your DSA key is actually set up and working, 
and that you're being prompted for the key's passphrase and not your 
regular login password. If that's not the case, then the problem is 
your DSA key isn't set up correctly. The first thing I'd check is the 
directory and file permissions on both ends; openssh ignores the DSA 
keys if it thinks the permissions are insecure. I always chmod my .ssh
directories to 0700 and all files within them to 0600.

- --
John Abreau / Executive Director, Boston Linux & Unix
ICQ 28611923 / AIM abreauj / JABBER jabr at / YAHOO abreauj
Email jabr at / WWW / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99

Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /