Passwordless login with ssh

Andrew DeFaria Andrew@DeFaria.com
Fri Oct 17 06:54:00 GMT 2003


Igor Pechtchanski wrote:

>> Now on to another problem. Perhaps this can't be done. As the user 
>> adefaria I wish to ssh to another machine as another user (ccadmin) 
>> and not be prompted with a password. Is this doable without "giving 
>> away the farm" security-wise? To allow certain users the right to ssh 
>> as another user without the need for a password?
>
> Sure you can. I do it all the time. Simply generate a public/private 
> key pair for the user on your home machine, and add the public key to 
> the authorized_keys file for ccadmin.

I'm figuring that out. Thanks for the guidance.

>> Finally, I would like to ssh to my home machine without needing a 
>> password. At work I'm adefaria, at home I'm Andrew. I wish to
>>
>> $ hostname
>> adefaria
>> $ echo $USER
>> adefaria
>> $ ssh Andrew@<home>.com
>>
>> and have my home machine set up to allow adefaria@adefaria to come in 
>> as Andrew.
>
> Same as above: generate a key pair for adefaria at work, and add the 
> public key to the authorized keys file for Andrew at home. 

Yes. This is cool. OK, thanks guys...



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list