Can you run a batch file\script after you connect to the
Win2k machine? Try running "net use t: \\\\server\\c$"
from a shell to see if it completes successfully. If it
does, disconnect it and try again from a batch file
or script during the pubkey connection.
If that works, you might have (a part of) your solution.
"net use t: \\server\c$" won't work because the shell
sees it, not the server. You need to escape the \ with
another \ in order for the shell to pass it on....something
I just learned looking up "System error 67 has occurred",
which is what I got trying to run "net use n:
\\eodc2\mis_files"... "net use n: \\\\eodc2\\mis_files"
works just fine.
Hope this helps,
Jim
> -----Original Message-----
> From: Zopito DiGiovanni [mailto:triumph@gankish.net]
> Sent: Saturday, March 02, 2002 3:24 PM
> To: 'ssh-l@erdelynet.com'
> Subject: RE: [ssh-l] Can't see network drives when run as a service?!
>
>
> Yes, this is a win2k machine. I had the same problem where I
> couldn't get pubkey auth to work when the service was running
> as system. I fixed this by changing it to run as administrator
> and changing some permissions to match. I don't really have any
> clue why this made a difference but I am not really a windows
> guy either. Are you saying to login via vnc and then launch a
> cygwin shell? I can see how that would work but not
> for what I am trying to do. I have some scripts that I wrote
> that connect into the windows machine via ssh (this is why pubkey
> auth is essential for my application) and then after that the
> network shares must be accessable.
> Everything works fine if I lauch sshd from a cygwin command
> prompt, but it can't access the network shares when sshd is
> run as a service. Everything else (uid,gid) seem to be the
> same but for some reason all the network drives are gone...
> thanks a lot for your reply and your effort.
>
> -Zo
>
> On Fri, 1 Mar 2002, Van Sickler, Jim wrote:
>
> > Date: Fri, 01 Mar 2002 14:31:06 -0500
> > From: "Van Sickler, Jim" <vansickj-eodc@Kaman.com>
> > Reply-To: ssh-l@erdelynet.com
> > To: "'ssh-l@erdelynet.com'" <ssh-l@erdelynet.com>
> > Subject: RE: [ssh-l] Can't see network drives when run as a
> service?!
> >
> >
> >
> > > -----Original Message-----
> > > From: Zopito DiGiovanni [mailto:triumph@gankish.net]
> > > Sent: Thursday, February 28, 2002 11:16 PM
> > > To: ssh-l@erdelynet.com
> > > Subject: [ssh-l] Can't see network drives when run as a service?!
> > >
> > >
> > > This is really wierd. I am having a problem where if sshd
> is run as a
> > > service, when I ssh in, I am not able to access any network
> > > drives. If I run sshd from the command line, everything
> works fine.
> > > In both cases, sshd is being run as administrator, it is the only
> > > way I could get public key authentication to work properly.
> > > any clue as to what might be happening and how to fix this??
> > >
> > > -Zo
> > >
> >
> > I'm guessing this is an NT or Win2k box you connect to...
> >
> > (I'm running the sshd service as SYSTEM, and using
> > password authentication-I can't get pubkey to work...)
> >
> > You can get access to the mapped drives via your login
> > and VNC session. Once you log in via vnc, run mount in your
> > ssh session - the network mapped drives authorized to that
> > user (may?) show up.
> >
> > Let me know it it works
> > Jim
> > --
> > List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> > List Archives: http://erdelynet.com/archive/ssh-l/
> >
>
> --
> List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> List Archives: http://erdelynet.com/archive/ssh-l/
>
-- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/Received on Mon Mar 4 10:43:01 2002
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:32 EDT