Password-less login

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:

mkdir ~/.ssh

2. Enter the folder:

cd ~/.ssh

3. Generate a RSA private key:

ssh-keygen -t rsa

4. Copy key to your clipboard

pbcopy < ~/.ssh/

5. Upload the SSH key to your server

cat ~/.ssh/ | ssh user@ "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"