Answer the question
In order to leave comments, you need to log in
Why doesn't git clone work on a remote server if I run the command through a bash script?
The task is to execute a small script:
ssh [email protected] << 'ENDSSH'
cd /home/me/myapp
pm2 stop myapp
git pull origin master
npm install
npm run build
pm2 start myapp
ENDSSH
git pull origin master
I get an error that there are no access rights.Cloning into 'issue'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question