0

In a sh script I tried push file automatically, but when you do "git pull" the repository ssh via and then in "git push" command ask me:

ECDSA key fingerprint is 11:00:22:33:44:55:66:77:88:99:10:11:12:13:14:15.
Are you sure you want to continue connecting (yes/no)?

I tried this:

echo "yes\n" | git push

git push << EOF
yes
EOF

yes "yes" | git push

printf '%s\n' yes | git push

but doesn't work, I don't know if this command works different

Benjamin W.
  • 46,058
  • 19
  • 106
  • 116
Isma90
  • 661
  • 2
  • 14
  • 30
  • 1
    @johnny243 I solved adding to ssh config file `Host gitlab.com StrictHostKeyChecking no`, this ignores the ssh key validation. – Isma90 Sep 26 '19 at 15:37
  • 3
    Don't add answers to the question, create an actual answer instead. Self-answering is totally fine. – Benjamin W. Sep 26 '19 at 16:00

0 Answers0