This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Issue running PowerShell code on Windows Machine from Linux machine using Cygwin
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 31 Jul 2018 13:34:51 +0200
- Subject: Re: Issue running PowerShell code on Windows Machine from Linux machine using Cygwin
- References: <CAE=7pzxgiLTtoMSKe-9b8wffWH64biOp_QbEhDWNfgDiYg1SgA@mail.gmail.com> <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