SSH - tetloose/tetloose-wp GitHub Wiki
Make sure you have SSH access to your staging / production environment.
SSH Local config
Edit or create ~/.ssh/config and add:
host project-name
Port 22
HostName host-name-address
User host-user-name
Server side
ssh project-name-> enter passwordssh-keygen -t rsa -b 4096 -C "[email protected]"-> hit enter till it completeseval $(ssh-agent -s) && eval `ssh-agent` && ssh-add ~/.ssh/id_rsatouch ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keyscat ~/.ssh/id_rsa.pub
Copy the output, add this key to your repo, e.g. https://github.com/settings/keys.
Once this is done log out exit.
No Password SSH
To enable no password ssh, your local public key needs to be added to the servers authorized_keys.
rsync ~/.ssh/id_rsa.pub project-name:~/.ssh/project-name.pubssh project-name-> enter passwordcat ~/.ssh/project-name.pub >> ~/.ssh/authorized_keys- Remove
~/.ssh/project-name.pub exitssh project-name-> no password required