Skip to content

Commit

Permalink
Authorizes ssh to 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manmorjim committed Oct 17, 2019
1 parent 2858ac0 commit 089565d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/scripts/ci/install_hive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
# HIVE_HOME
# HIVE_VERSION

# authorizes ssh to localhost in xenial
# authorizes ssh to localhost and 0.0.0.0 in Xenial
ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keyscan -t rsa localhost >> ~/.ssh/known_hosts
ssh-keyscan -t rsa 0.0.0.0 >> ~/.ssh/known_hosts

This comment has been minimized.

Copy link
@rafatower

rafatower Oct 17, 2019

I'd say it's best to authorize only to localhost IP's (?): 127.0.0.1, 127.0.1.1

This comment has been minimized.

Copy link
@manmorjim

manmorjim Oct 17, 2019

Author

Yes, it is. In fact I think we could keep using the option StrictHostKeyChecking no in order to avoid specifying IP's.

cat << EOF >> ~/.ssh/config
Host localhost
IdentityFile ~/.ssh/id_rsa
Expand Down

0 comments on commit 089565d

Please sign in to comment.