delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/18/10:02:30

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=D2J
g81nvwJzUg4L2QZ55EoTSu0wwYF3Jf64aFgYs6h23oHry/dvoSm9vdJ1bX6/cNpO
A8wWZc56Kub57rZSJY/dEt3chs9x2Gt7dY7zd4viYhA/uob51vzD/aprt2CVGQd+
rcaADjyRTlsxhorPD3ET7IeBJUQHkytOQYgYpA8I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=cerPF0E/H
RUoYBtEH6ye/e7V36E=; b=KhM/2zxa+PlBmbSHcc9iRffPZc7TCkRwGz9LK7luN
L3XE5P4HlKWdf7uVVqbFogbO3z+aSPjFJNVoth6Gz+iV7HgGngcY2i6Kxr2HEFEe
GTUy5xOtIChlueDCvCNjHG7sBceLgYbbvK9njAnTwFAjjT3dSgqX+cun7sNn3Tef
HI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=authenticity, Permissions, Hx-languages-length:1399, H*MI:local
X-HELO: mail-ig0-f171.google.com
X-Received: by 10.50.142.33 with SMTP id rt1mr3625545igb.32.1450450930553; Fri, 18 Dec 2015 07:02:10 -0800 (PST)
Date: Fri, 18 Dec 2015 10:02:08 -0500
From: Byron <anondaymia AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: With nsswitch db_home of /cygdrive/c/%U ssh can't seem to use .ssh folder
Message-ID: <20151218100208.68ac88d4@byron-fed23.brc.local>
MIME-Version: 1.0
X-IsSubscribed: yes

Every time I use ssh to a machine I get the fingerprint warnings like
it's the first time I've ssh-ed to that machine. I've narrowed it down
to have something to do with my `db_home` being set to `/cygdrive/c/%U`
in `nsswitch.conf`. I have it set to this value because I want my
Cygwin home folder to be the home folder of my computer. Since I'm on
an Active Directory network if I set `db_home` to `windows` then my
home folder is on a network file server rather than my desktop.

I can't see any reason that ssh isn't able to properly use my `.ssh`
folder. Am I missing something, or is this a bug?

Below is sample output of ssh, the permissions of my `.ssh/` folder and
files, and the contents of my `/etc/nsswitch.conf`.

```
$ ssh destination
Could not create directory '/cygdrive/c/bkboulton/.ssh'.
The authenticity of host 'destination (192.168.11.7)' can't be
established. RSA key fingerprint is
SHA256:WKewPf3j9Vljltmsnr/cwZmr0XBy8L5E6Chwp1gWK4g. Are you sure you
want to continue connecting (yes/no)?
```

Permissions of my `/cygdrive/c/bkboulton/.ssh` folder ar `drwx------+`.
Permissions on all file in that folder are `-rw-r--r--`.

```
$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# passwd:   files db
# group:    files db
db_home:  /cygdrive/c/%U #cygwin desc
db_shell: /usr/bin/zsh
# db_gecos: cygwin desc
```

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019