Skip to content

Set up sync connection

Ralf Ren edited this page Mar 22, 2018 · 1 revision

Command

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.

Example

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

Parameters

  • If -p [SSH Port] is not specified, the SSH port is set to 22
  • 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.

Notice

This command creates .gekko file in your home directory, saving all the sync connections. You can modify it, but at your own risk.