Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: Passwordless login with ssh Date: Thu, 16 Oct 2003 22:44:59 -0700 Lines: 31 Message-ID: References: <20031016081208 DOT GB28997 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en,ru In-Reply-To: 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@.com >> >> and have my home machine set up to allow adefaria AT 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/