Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do I mount an internet based samba share to my computer and tunnel it using SSH?

I thought I had it sorted using TamirSharp from nuget, but when I monitor the packet transfer with Wireshark the only protocol that is sent is SMB2 and this is not what I need.
C#
SshShell ssh = new SshShell(Vars.pingAddr, Vars.username);
           ssh.Password = Vars.password;

           ssh.RedirectToConsole();
           ssh.Connect();

           while (ssh.Connected)
           {
               try
               {
                 //Mount drive here using process.start("net.exe")
               }
               catch
               {
                 //error trapping
               }
           }

The drive mounts and behaves itself as expected, I just don't seem to be able to get the encryption working.

Any clues would be greatly appreciated!

Thanks in advance
Posted
Updated 11-Mar-14 23:59pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900