You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sshfs/SSHFS.CLI/Program.cs
+42-25Lines changed: 42 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@
11
11
usingSystem.Text;
12
12
usingSystem.Text.RegularExpressions;
13
13
usingSystem.Threading.Tasks;
14
+
usingCommandLine.Text;
15
+
usingDokanNet.Logging;
14
16
15
17
namespaceSSHFS.CLI
16
18
{
@@ -21,6 +23,7 @@ class Options
21
23
Required=true,
22
24
HelpText="Drive letter to mount the remote SFTP path under")]
23
25
publiccharDriveLetter{get;set;}
26
+
24
27
[Option('r',"path",
25
28
Required=true,
26
29
HelpText="Absolute path of directory to be mounted from remote system")]
@@ -31,8 +34,9 @@ class Options
31
34
Required=true,
32
35
HelpText="IP or hostname of remote host")]
33
36
publicstringHost{get;set;}
37
+
34
38
[Option('p',"port",
35
-
Required=false,DefaultValue=22,
39
+
Required=false,Default=22,
36
40
HelpText="SSH service port on remote server")]
37
41
publicintPort{get;set;}
38
42
@@ -41,31 +45,37 @@ class Options
41
45
Required=true,
42
46
HelpText="Name of SSH user on remote system")]
43
47
publicstringUsername{get;set;}
48
+
44
49
[Option('x',"password",
45
50
Required=false,
46
-
HelpText="INSECURE: SSH user's password, if password-based or keyboard-interactive auth should be attempted. Note that the security model for this is equivalent to sshpass's -p option, and exposes your password to any process on the machine that cares to run ps")]
47
-
publicstringPassword{get;set;}
48
-
[OptionArray('k',"private-keys",
51
+
HelpText="Read password from stdin")]
52
+
publicboolPassword{get;set;}
53
+
54
+
[Option('k',"private-keys",
49
55
Required=false,
50
56
HelpText="Path to SSH user's private key(s), if key-based auth should be attempted")]
0 commit comments