-
Notifications
You must be signed in to change notification settings - Fork 0
Set up sync connection
Ralf Ren edited this page Mar 22, 2018
·
1 revision
Full command:
$ gekko grip [Username]@[Host]:[Remote Path] -p [SSH Port] -k [SSH Key absolute path] -s [Remark] -l [Local Path]
Alias:
$ gekko gp [Username]@[Host]:[Remote Path] -p [SSH Port] -k [SSH Key absolute path] -s [Remark] -l [Local Path]
-p [SSH Port]
, -k [SSH Key absolute path]
and -l [Local Path]
are optional.
If I want to sync my files to [email protected]
in the /root/upload
directory of remote,
SSH port is 12345
,
set a remark called myserver
,
Just run
$ gekko grip [email protected]:/root/upload -p 12345 -s myserver
- If
-p [SSH Port]
is not specified, the SSH port is set to22
- If
-l [Local Path]
is defined, Gekko will sync the specified local directory to remote rather than sync the current working directory to the remote. - If you use SSK key as the authentication method, use
-k [SSH Key absolute path]
to specify it.
This command creates .gekko
file in your home directory, saving all the sync connections. You can modify it, but at your own risk.