Answer the question
In order to leave comments, you need to log in
How to SSH into a Git server from Bash?
Good afternoon!
The task is to clone the git repository in jenkins using the Shell script:
whoami # => SYSTEM
# Запрос делается с виндовой машины
# В файле лежит RSA private key
ssh_id_rsa_path="C:/jgit/id_rsa"
eval $(ssh-agent -s)
ssh-add $ssh_id_rsa_path
# Url и схему менять нельзя, запрос только по SSH
git clone ssh://[email protected]/user/reponame/reponame.git
# => Host key verification failed.
Answer the question
In order to leave comments, you need to log in
ssh://[email protected]/user/reponame/reponame.git
Or am I misunderstanding something.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question