forked from Tauop/sshGate-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
40 lines (26 loc) · 1.63 KB
/
README
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
== README ==
IMPORTANT : sshgate-client-configure depends on ScriptHelper (http://github.com/Tauop/ScriptHelper)
ScriptHelper has to be installed on the system so that sshGate-client works
sshgate-client-configure help the user to update his ~/.ssh/config to
setup a "sshgate" host, which will be used by 'sshg' and 'scpg' script.
'sshg' and 'scpg' scripts may be put into the /usr/local/bin/ directory.
== Install ==
Copy sshg, scpg and sshgate-client-configure in /usr/bin/ (or /usr/local/bin/, or whatever directory
which is in PATH) and put execution rights on them.
cp sshg scpg sshgate-client-configure /usr/local/bin/
chmod +x /usr/local/bin/{sshg,scpg,sshgate-client-configure}
First time you will run scpg or sshg, or if Host sshgate isn't configured in ~/.ssh/config,
sshgate-client-configure will ask questions to configure sshg and scpg. Be careful, some answer
depends on the sshGate server installation/configuration. Ask your admins for more information
If your sshGate server has changed, you will be able to change sshg and scpg configuration
by calling sshgate-client-configure
== Details ==
'sshgate-client-configure' ask questions and write into ~/.ssh/config.
'sshg' is quite simple. It's an equivalent of 'ssh sshgate <target_host> <cmd>'
'scpg' is more complex. Here are the 'scpg - scp' equivalent syntaxes:
in send mode:
scpg [<options>] <file1> <file2> <target_host>:<target_location>
--> scp [<options>] <file1> <file2> sshgate:<target_host>/<target_location>
in receive mode:
scpg [<options>] <target_host>:<target_location> <local_location>
--> scp [<options] sshgate:<target_host>/<target_location> <local_location>