本文介绍了需要通过SSH帮助Samba的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将基于互联网的samba共享安装到我的计算机并使用SSH进行隧道传输?
我以为我是使用来自nuget的TamirSharp进行排序的,但是当我使用Wireshark监控数据包传输唯一的协议是SMB2,这不是我需要的。
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.
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
推荐答案
这篇关于需要通过SSH帮助Samba的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!