delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/31/23:01:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_HK_NAME_FM_MR_MRS
X-Spam-Check-By: sourceware.org
From: "Mr. Gecko" <grmrgecko AT gmail DOT com>
Subject: Parallels Shared Folders on SSHD Cygwin
Message-Id: <7A3CF639-C04B-4C3A-B0E3-1EC4D8C942B1@gmail.com>
Date: Tue, 30 Oct 2012 13:31:17 -0500
To: cygwin AT cygwin DOT com
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id qA1310mc008715

I'm trying to use ssh to run a windows only program in parallel with a mac only program. To do this I needed to do a few steps.

1. Install cygwin with opensshd on windows using RSA authentication.
2. Access the Z: drive (\\psf\Host) on ssh as this is where the files are stored which are being processed.

I cannot complete step 2. Here are the details of what I've tried.

On ssh:
ls /cygdrive/
c

On Cygwin Terminal:
ls /cygdrive/
c u w x y z

From what I read here http://cygwin.com/faq-nochunks.html#faq.using.shares, in order to access shares via sshd, you have to ether run the service as the user the shares are on (Administrator) or mount using net use via ssh.

I first try to start sshd as Administrator via "sshd -p /usr/sbin/sshd -a -D -u Administrator", but whenever I try to start it I get:
cygrunsrv -S sshd
cygrunsrv: Error starting a service: StartService: Win32 error 1069:
The service did not start due to a logon failure.

I thought this could mean my password is incorrect, so I tried logging out and logging back in to test my password and it was correct. So I gave up and just ran sshd as system (default) and tried using the mounting of the network drive.

net use
New connections will be remembered.


Status Local Remote Network

-------------------------------------------------------------------------------
U: \\psf\Finance Folder Parallels Shared Folders
W: \\psf\Power Parallels Shared Folders
X: \\psf\Work Computer Parallels Shared Folders
Y: \\psf\Home Parallels Shared Folders
z: \\.PSF\Host Parallels Shared Folders
Z: \\psf\Host Parallels Shared Folders
The command completed successfully.

Then I read http://forum.parallels.com/pda/index.php/t-17049.html tried what they suggested and got:
net use 'Z:' '\\.PSF\Host'
The password is invalid for \\.PSF\Host.

Enter the user name for '.PSF': System error 1223 has occurred.

The operation was canceled by the user.

I've tried many different varieties such as changing ".PSF" to psf and PSF. Nothing worked. I also tried adding the password of my windows account and I get:
net use 'Z:' '\\.PSF\Host' password
System error 5 has occurred.

Access is denied.

I then tried the same password as my Mac's and same result.

If I start sshd in Cygwin Terminal on Administrator, I can in-fact access Z: and run the command I want.

Any help?

Thanks

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019