Remote terminal commands cannot be automated if they are required to enter a password. To run these in GitFTP-Deploy, you need to setup password-less logins.
1. First, check if you already have an existing ssh key on your computer.
ls -la ~/
If you don’t see
.ssh you need to create it:
2. Enter the folder:
3. Generate a RSA private key:
ssh-keygen -t rsa
4. Copy key to your clipboard
pbcopy < ~/.ssh/id_rsa.pub
5. Upload the SSH key to your server
cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"