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 Message-Id: <200308210926.h7L9QaF09328@utah.> Date: Thu, 21 Aug 2003 11:26:36 +0200 (MEST) From: Bursian Achim Reply-To: Bursian Achim Subject: Re: ssh does not find the config file? To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: UJp3J7umfGhz5Ph8mY2m+A== > >Bursian Achim wrote: >> >> >> Using 'ssh utah' does not work, I get prompted for the password for >> >> BA3759 AT utah. But strange enough, 'ssh -F $HOME/.ssh/config utah' does >> >> work. $HOME/.ssh/config should be the default for the config file, but >> >> obviousely it isn't??? >> > >> >You shouldn't have to specify IdentityFile in the config, since >> >$HOME/.ssh/id_rsa is the default (and the path /home/.ssh you have above >> >probably doesn't exist, unless your home directory is really /home/.) >> >> Actually, it is /home, I mounted it that way because I'm the only user on the system. > >Hmm, that does sound odd. I would suggest running either 'ssh -vvv' (or >whatever it is that enables the max debug spew) or even 'strace ssh' and >see what all files it's trying to look for. Is your home directory >correct in /etc/passwd? > Thanks, Brian, that was the right hint: In /etc/passwd the homedirectory was /cygdrive/h. I guess this is what cygwin setup does automatically, because H:\ is what my "homedir" on the NT domain is. Almost all other apps honor my setting in $HOME, but ssh seems to look into /etc/passwd only, not to $HOME. Although it claims to do so in the manpage: -F configfile Specifies an alternative per-user configuration file. If a configuration file is given on the command line, the system-wide configuration file (/etc/ssh_config) will be ignored. The default for the per-user configuration file is $HOME/.ssh/config. Fixing my entry in passwd and everything goes as expected. Thanks for the help! -Achim -- 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/