Displaying 2 results from an estimated 2 matches for "longpath_to_config1".
Did you mean:
longpath_to_config2
2017 May 18
2
feature request: use HOME before getpwnam() in misc.c
it's really^3 annoying that no matter the value of $HOME, that tilde_expand_filename() only looks at getpwnam() and friends instead of at least trying getenv("HOME").
What is the use case?
HOME=longpath_to_config1
ssh -i ~/.ssh/key1
HOME=longpath_to_config2
ssh -i ~/.ssh/key2
but getpwnam() defeats this by always accessing what's in the passwd file. So .ssh/known_hosts is likewise read/written outside of $HOME/.ssh/ and the config files too don't remain in local scope.
Sure 99% of users $HOME = pw...
2017 May 19
2
feature request: use HOME before getpwnam() in misc.c
...al Message ?
From: Gert Doering
Sent: Friday, May 19, 2017 02:19
To: matthew patton
Cc: openssh-unix-dev at mindrot.org
Subject: Re: feature request: use HOME before getpwnam() in misc.c
Hi,
On Thu, May 18, 2017 at 09:51:04PM +0000, matthew patton wrote:
> What is the use case?
>
> HOME=longpath_to_config1
> ssh -i ~/.ssh/key1
>
> HOME=longpath_to_config2
> ssh -i ~/.ssh/key2
If you run things like that, the "~" is not expanded by ssh but by your shell.
Try "echo ~/"...
Barking up the wrong tree...
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc....