A Calkit example project that executes a command on a remote server using SSH, automatically copying project files back and forth.
Note this will probably fail if run from Windows for a Unix-like host because Git will probably check out files with the wrong line endings and send those over. This is configurable, however.
See these docs.
This is only necessary if you haven't done this before. Optionally, you can create a new key just for this host. Don't use a passphrase if you want your commands to run without entering it each time. This should be okay if your machine is secure.
Assuming you've created one and added it to the agent, call:
ssh-copy-id $USER@$HOST
If created a unique key for this remote host,
use the -i
flag to specify that key file.
In calkit.yaml
, there is an environment called cluster
.
Replace any relevant values there to match your remote machine.
Execute:
calkit run