To automatically pull a Git repository using appleboy/ssh-action
on a server with SSH access, you can follow these steps:
-
Ensure that the server has SSH access and the necessary permissions to execute Git commands.
-
Create an SSH key pair on your local machine (if you haven't already) by running the following command in your terminal:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
-
Copy the public key (
id_rsa.pub
) generated in the previous step.