Network Drives and SSH


Recommended Posts

I have to network drives on my Windows machine mapped to shares on my Unraid server.  I can see them and access file on them just fine:
 

Quote

>net use
New connections will be remembered.
Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK           M:        \\192.168.1.254\E-Drive   Microsoft Windows Network
OK           T:        \\192.168.1.254\Torrents  Microsoft Windows Network
 


If I go to a guest Ubuntu virtual machine (Oracle VirtualBox), I can see the share and again access them.  (I get some permission errors trying to access some files, but not other, but that's another story - I think.)

One of the scripts I run has to ssh back to host to run a Windows command.  When it ssh's back to the host machine, it no longer has access to the share.  If I just ssh to the host and run net use, this is what I see:
 

Quote

>net use
New connections will be remembered.
Status       Local     Remote                    Network
-------------------------------------------------------------------------------
Unavailable  M:        \\192.168.1.254\E-Drive   Microsoft Windows Network
Unavailable  T:        \\192.168.1.254\Torrents  Microsoft Windows Network
 


I can see 192.168.1.254 fine.  I can map network drives to it ok.   I can re-establish the shares if I Net Use them again:
 

Quote

>net use m: \\192.168.1.254\E-Drive
The command completed successfully.

 

>net use t: \\192.168.1.254\Torrents
The command completed successfully.

>net use
New connections will be remembered.
Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK           M:        \\192.168.1.254\E-Drive   Microsoft Windows Network
OK           T:        \\192.168.1.254\Torrents  Microsoft Windows Network
 


What is going on here?  How can I fix this?
 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.