delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/09/19:21:37

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:subject:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=VggqBacOTp4+cu08
h75JKCruHfIZauSHVIwObQDR5I46YSFGMpSfS+77e9vpiyBZFILYzoEtl99ww9oo
EjuMu7uOcDJ1QwusvbixUhgRrYBhRa2u4uzXChIkvIcPavgvHoldl/hxM5nQ3wyj
ivN2dQ9yKmQFtkehQ3RDOZJ+TcM=
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:subject:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=AXVtWpkwXwq3OzqTL21jm0
NdHTo=; b=Ilqb06+To0D98XjhpUMA3UM6LZkRcJm47g4WTRC+7VvKMW6OtIx2ry
ftA/1b7FZQ72zs5/lBmWvrkrpD1JZIrsYyvkTgi/pcsjNH0UDU5DEiVH5+hQRSfV
6XORtyQbZRZTRI+mgBkLlixxaNnnxBcQed252OUqdPC5jfFBWkudM=
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=1.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*R:D*ca, H*r:ip*192.168.1.100, UD:ico, Hx-spam-relays-external:sk:smtp-ou
X-HELO: smtp-out-so.shaw.ca
X-Authority-Analysis: v=2.2 cv=W+NIbVek c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=ZDrJmaxVyplo2jLSNSsA:9 a=QEXdDO2ut3YA:10
Subject: Re: bash -l not sourcing /etc/profile? (minor annoyance)
References: <d36a5c1f-d515-c78c-e958-cd94898f7db0 AT pobox DOT com>
To: cygwin AT cygwin DOT com
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <fd4be5d7-52f7-0d29-2776-bc0316c06f6c@SystematicSw.ab.ca>
Date: Thu, 9 Mar 2017 17:21:14 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <d36a5c1f-d515-c78c-e958-cd94898f7db0@pobox.com>
X-CMAE-Envelope: MS4wfM4GsxAql5tesqp7DnU82c88JnW3jIjIAGEkdF9n6G9QVqbHDtpm+TVOO2frF0S7rOpTVSSDWN8C+Cc90NFnwJBbbmDUefLvU2r8X9n8fnnfMj51xUCJ gphVE1xesIl9h0kUQxhYoZrZSM09mkD0KZ6SthtDoH0GLDKSG7McSe0APQ/VazqHZIGtBOz8uXCn6A==
X-IsSubscribed: yes

On 2017-03-09 15:58, Daniel Santos wrote:
> This is just a minor annoyance. When I start a mintty session and
> even if I type bash -l or basy -li, I don't get my /etc/profile
> sourced and I have to manually do it each time I log in. Any idea
> what's causing that?

Cygwin/bash/mintty shortcut properties or command line should have 
"-" at end e.g.

	"C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -"

Otherwise does it have Windows line endings or permissions too open?

> Possibly related, sshd doesn't seem to be reading my
> ~/.ssh/authorized_keys because I have to type my password every time
> I ssh in.

Windows line endings or permissions too open on directory 
(s/b drwx------) or private key files, config, known_hosts, 
authorized_keys (s/b _rw-------)?

Could sshd config have disabled allowing personal config files 
(common on corporate servers - have to talk to admins)?

If you have a passphrase on your key, you could use ssh-agent 
and ssh-add to avoid reverifying credentials on each connection.

Do you also need host keys in /etc/ssh_known_hosts or 
~/.ssh/known_hosts as well as your PPK pair?

If you are using a native Windows ssh client you may need to use 
something like Putty/Pageant/Plink to support SSH2 connections, 
or client or server could have limited crypto support requiring 
a specific PPK pair to be used to match both sides support.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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