Skip to content

Commit 0779fe3

Browse files
author
Daniel Carabas
committed
Add localhost to known_hosts
1 parent b6fc0aa commit 0779fe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/acceptance/clone_repo_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@
475475
run_shell("mkdir -p #{homedir}/.ssh")
476476
run_shell("ssh-keygen -q -t rsa -f #{homedir}/.ssh/id_rsa -N ''")
477477

478-
run_shell("ssh-keyscan github.com >> #{homedir}/.ssh/known_hosts")
479-
478+
run_shell("ssh-keyscan localhost >> #{homedir}/.ssh/known_hosts")
479+
480480
# copy public key to authorized_keys
481481
run_shell("cat #{homedir}/.ssh/id_rsa.pub > #{homedir}/.ssh/authorized_keys")
482482
run_shell("echo -e \"Host localhost\\n\\tStrictHostKeyChecking no\\n\" > #{homedir}/.ssh/config")

0 commit comments

Comments
 (0)