public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Thomas Wolff <towo@towo.net>
To: cygwin@cygwin.com
Subject: Re: Issue running PowerShell code on Windows Machine from Linux machine using Cygwin
Date: Tue, 31 Jul 2018 13:20:00 -0000	[thread overview]
Message-ID: <732a6d29-4c9b-c044-423a-31bdcf7b7d1a@towo.net> (raw)
In-Reply-To: <87tvogczmz.fsf@Rainer.invalid>


Am 30.07.2018 um 21:05 schrieb Achim Gratz:
> Shekhar Shukla writes:
>> I am having issue while establishing a ssh connection from Linux to Windows
>> machine using Cygwin. My powershell script works when I run it from Linux
>> using ssh connection(Cygwin) to Windows  and manually enter my passowrd.
>> But whn I use public key to authenticate my user(making a password less
>> connection), it fails. Is it a bug with CYgwin?
> No, Windows simply does not give you full access to your normal
> privileges when you log in remotely without a password.  Specifically,
> you won't be able to access anything that is considered non-local, like
> external fileshares.
If I setup password-less login to the cygwin ssh server, using 
authorized-keys, I can access all remote shares from cygwin,
and also from cmd, started from cygwin with `winpty cmd`, for that matter.
Possibly, if the remote login is the first login of the user, the mounts 
will just have to be established? (Using `net use`)

> See: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview
>
> If you trust the server in question and all its administrators and other
> users, you can use "Method 3" as described above.  Don't forget to set
> up cygserver if you want to be able to set or change the password with a
> non-administrative account.
>
>
> Regards,
> Achim.


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

  reply	other threads:[~2018-07-31 11:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-30 15:53 Shekhar Shukla
     [not found] ` <59d985e9-7702-cbdb-8da5-8c825def9064@gmail.com>
     [not found]   ` <CAE=7pzwMD3A6cH_=Bduk36RM-RBFuytwkgUZg+03ph6e0_jLpw@mail.gmail.com>
2018-07-30 19:47     ` Marco Atzeri
2018-07-31 12:53       ` Shekhar Shukla
2018-07-30 21:47 ` john doe
2018-07-31  1:13 ` Achim Gratz
2018-07-31 13:20   ` Thomas Wolff [this message]
2018-08-01 18:27     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=732a6d29-4c9b-c044-423a-31bdcf7b7d1a@towo.net \
    --to=towo@towo.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).