-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfsconfig
83 lines (75 loc) · 3.19 KB
/
fsconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
=========================================================================================================================================================================
The following examples "HostName" is the name defined for remote how in the ssh config file
if you don't have a ssh config file simply replace "HostName" in the example with "user@ip" where "user" is your actual remote username and "ip" is your actual remote ip
all host must be separated by a "---"
=========================================================================================================================================================================
-------------------------------------------------------
form #1
-------------------------------------------------------
Host HostName
LocalDirectory /absolute/path/to/local/directory
RemoteDirectory /absolute/path/to/remote/directory
---
-------------------------------------------------------
form #2
-------------------------------------------------------
LocalDirectory /absolute/path/to/local/directory
RemoteDirectory /absolute/path/to/remote/directory
Host HostName
---
-------------------------------------------------------
two directories for the same remote host
-------------------------------------------------------
LocalDirectory /absolute/path/to/local/directory
RemoteDirectory /absolute/path/to/remote/directory
Host HostName
LocalDirectory /absolute/path/to/local/directory2
RemoteDirectory /absolute/path/to/remote/directory2
---
-------------------------------------------------------
form #1 plus allow PortForwarding
-------------------------------------------------------
LocalDirectory /absolute/path/to/local/directory
RemoteDirectory /absolute/path/to/remote/directory
PortForwarding yes
Host HostName
---
-------------------------------------------------------
form #2 and allow PortForwarding
-------------------------------------------------------
Host HostName
LocalDirectory /absolute/path/to/local/directory
RemoteDirectory /absolute/path/to/remote/directory
PortForwarding yes
---
-------------------------------------------------------
two directories with PortForwarding enabled for one
-------------------------------------------------------
LocalDirectory /absolute/path/to/local/directory
RemoteDirectory /absolute/path/to/remote/directory
PortForwarding yes
Host HostName
LocalDirectory /absolute/path/to/local/directory2
RemoteDirectory /absolute/path/to/remote/directory2
---
-------------------------------------------------------
other forwarding options
-------------------------------------------------------
Host host1
LocalDirectory /absolute/path/to/local/directory1
RemoteDirectory /absolute/path/to/remote/directory1
LocalForward 8888 127.0.0.1:8888
RemoteForward 8889 127.0.0.1:8889
DynamicForward 127.0.0.1:5000
ForwardAgent yes
---
Host host2
LocalDirectory /absolute/path/to/local/directory2
RemoteDirectory /absolute/path/to/remote/directory2
UseSSHConfigForwards host2
---
Host host3
LocalDirectory /absolute/path/to/local/directory2
RemoteDirectory /absolute/path/to/remote/directory2
UseSSHConfigForwards other_hostname_in_ssh_config
---