This took me longer than it should have to figure out. Maybe this will
save other people time.
Search terms I tried: remote ssh git clone non-login script

This does NOT work...
wros...@wroscoe-laptop:~$ ssh root@<my_server_ip> 'git clone
[email protected]:me/project.git'
Initialized empty Git repository in /root/workbench/project/.git/
Host key verification failed.
fatal: The remote end hung up unexpectedly

Solution 1: (pipe "yes")...
wros...@wroscoe-laptop:~$ ssh root@<my_server_ip> 'echo "yes" | git
clone [email protected]:me/project.git'

Solution 2: (use the quite [-q] option)...
wros...@wroscoe-laptop:~$ ssh root@<my_server_ip> 'git clone -q
[email protected]:me/project.git'



Search terms I tried: remote ssh git clone non-login script

--

You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/github?hl=en.


Reply via email to