ssh is normally set up to run under the SYSTEM
account; that's why you can't map drives in
an ssh shell...
You need to start the ssh daemon with a different
account than SYSTEM, one that can log into the
PC or Domain. This isn't a very secure means,
especially if you use the Administrator account.
Whatever privileges the account has are passed
onto the ssh daemon. I could be wrong...
A more secure way to map the drives is to
set the ssh daemon up as it usually is,
including privilege separation. Then use
vnc or tightvnc, etc, to log into the box.
You can map your drives manually then, or
as part of the logon script. The mapped drives
will then show up in your ssh session.
Use df to see the before/after drive listing.
Jim
> -----Original Message-----
> From: Ben Voigt [mailto:bvoigt@kas.com]
> Sent: Tuesday, December 03, 2002 9:49 AM
> To: ssh-l@erdelynet.com
> Subject: RE: Accessing network shares under sshd
>
>
> Can you open a cmd.exe session from within ssh? (Works not
> so well, but you
> should be able to determine whether you can access the mapped
> drives.) If
> so, you can use the cygwin mount command to create mount
> points now that the
> drive letters are mapped. (You probably don't need a Windows
> drive letter
> for cygwin to create a mount point; you do need the net use
> /user command to
> set the right credentials).
>
>
> Ben Voigt
> University of Pennsylvania
> Electrical Engineering PhD Student
>
> voigt@seas.upenn.edu
> BVoigt@kas.com
>
> http://penn.kas.com
>
> ICQ # 16895963
> MSN Messenger: BVoigt@kas.com
> AIM: jscwildcat
>
> Office:
> 312 Moore School
>
> Local Address:
> 4206 Walnut St.
> Apt 3 Front
> Philadelphia, PA 19104
> (832) 868-4286
>
> Permanent Address:
> 2193 14th Avenue
> McPherson, KS 67460-8019
> (785) 227-3241
>
>
> -----Original Message-----
> From: ssh-l-admin@erdelynet.com [mailto:ssh-l-admin@erdelynet.com]On
> Behalf Of Douglas Blood
> Sent: Tuesday, December 03, 2002 10:51 AM
> To: ssh-l@erdelynet.com
> Subject: Re: Accessing network shares under sshd
>
>
> heh.. i just asked the same question just in a different way. for me i
> already have the drives mapped under windows so i can just
> issue the `net
> use i:` command and it says that it was mapped. However when
> running this
> under ssh it fails to create the correct link in /cygdrive/.
> I know that
> this must be a ssh issue because the links are already there
> in normal bash,
> and removed in ssh.
>
> --
> List Information: http://tech.erdelynet.com/mailman/listinfo/ssh-l/
> List Archives: http://erdelynet.com/archive/ssh-l/
> ---
> {AVG => Incoming mail is certified Virus Free.}
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.423 / Virus Database: 238 - Release Date: 11/25/2002
>
> --
> List Information: http://tech.erdelynet.com/mailman/listinfo/ssh-l/
> List Archives: http://erdelynet.com/archive/ssh-l/
>
-- List Information: http://tech.erdelynet.com/mailman/listinfo/ssh-l/ List Archives: http://erdelynet.com/archive/ssh-l/Received on Fri Dec 6 11:02:26 2002
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:41 EDT