This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.5.25: Different users when using ssh
On 08/06/2009 12:52 PM, GÃransson David wrote:
I am trying to execute some scripts on a Win2003 R2 virtual machine via ssh. The problem is that the user running on the remote machine isn't what I expect.
ssh firstname.lastname@example.org whoami
it gives me
However, if I start with
and in the resulting shell write
I use public key authentication, which I have understood can create some problems, but it seems to me that since it works in the second case, it shouldn't have anything to do with that.
Is there something to execute to change user, set user variables and such? I tried /etc/profile, but that didn't work.
No. This is a limitation of the SSH under Cygwin 1.5.x. You can try
Cygwin 1.7 <http://cygwin.com/#beta-test> which provides more options to
deal with the issue of public key authentication. See
options. "Method 2" is probably what you want.
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple