ssh config
I'm trying to set up shortcuts in ~/.ssh/config, but it doesn't seem to work. I add: Host slate Hostname quarry.slate-gravel.com User fred ...but when I try to use it: [SNIP] host ssh slate ssh: Could not resolve hostname slate: no address associated with name host [/SNIP] What am I missing here? Thanks, Mike
Re: ssh config
Check your /etc/passwd file It's possible that ~ isn't really your home directory - Jim On Tue, Aug 18, 2009 at 9:46 AM, Mike Ayersmike_ay...@tvworks.com wrote: I'm trying to set up shortcuts in ~/.ssh/config, but it doesn't seem to work. I add: Host slate Hostname quarry.slate-gravel.com User fred ...but when I try to use it: [SNIP] host ssh slate ssh: Could not resolve hostname slate: no address associated with name host [/SNIP] What am I missing here? Thanks, Mike -- Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
RE: ssh config
Well that was it, thanks, but why is ssh looking there? I thought it (and all other apps) used HOME on cygwin? Thanks, Mike -Original Message- From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree- ow...@cygwin.com] On Behalf Of Jim Reisert AD1C Sent: Tuesday, August 18, 2009 10:24 AM To: cygwin-xfree@cygwin.com Subject: Re: ssh config Check your /etc/passwd file It's possible that ~ isn't really your home directory - Jim On Tue, Aug 18, 2009 at 9:46 AM, Mike Ayersmike_ay...@tvworks.com wrote: I'm trying to set up shortcuts in ~/.ssh/config, but it doesn't seem to work. I add: Host slate Hostname quarry.slate-gravel.com User fred ...but when I try to use it: [SNIP] host ssh slate ssh: Could not resolve hostname slate: no address associated with name host [/SNIP] What am I missing here? Thanks, Mike -- Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: ssh config
On 8/18/2009 1:46 PM, Mike Ayers wrote: Well that was it, thanks, but why is ssh looking there? I thought it (and all other apps) used HOME on cygwin? Nope. But if you think about it, if $HOME doesn't equal ~ for Cygwin, something has gone awry. Given that as context, it really wouldn't matter whether '/etc/passwd' or $HOME was the source. -- Larry -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
RE: ssh config
From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree- ow...@cygwin.com] On Behalf Of Larry Hall (Cygwin X) Sent: Tuesday, August 18, 2009 3:10 PM On 8/18/2009 1:46 PM, Mike Ayers wrote: Well that was it, thanks, but why is ssh looking there? I thought it (and all other apps) used HOME on cygwin? Nope. But if you think about it, if $HOME doesn't equal ~ for Cygwin, something has gone awry. Given that as context, it really wouldn't matter whether '/etc/passwd' or $HOME was the source. So it gets ~ from /etc/passwd? Ah - didn't know that. I'll check it in the future. I do think of cygwin as a Windows environment more than Unix, so some of these things get by me. In years past, I would just set HOME and all was well. Thanks, Mike
Re: ssh config
Let's clarify something here. ~ is always the same as $HOME. If you change $HOME - within bash - then ~ changes too: $ HOME=/bogus/directory $ echo ~ /bogus/directory HOME starts out set to whatever's in /etc/passwd, but you can change it. For that reason, security-conscious programs like ssh ignore $HOME and go by what's in /etc/passwd (which, on a real Unix system, an unprivileged user can't change). So changing $HOME is asking for trouble, basically. -- Mark J. Reed markjr...@gmail.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/