mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 18:08:11 +00:00
travis: enable password authentication on OSX
Our ssh tests assume that the server supports password authentication in a few places. This is convenient as we're not testing authentication methods, but what happens around them. Tell sshd on OSX to accept this form of authentication.
This commit is contained in:
parent
e26b08d32c
commit
8733993599
@ -22,7 +22,13 @@ ctest -V . || exit $?
|
|||||||
# can do the push tests over it
|
# can do the push tests over it
|
||||||
|
|
||||||
killall git-daemon
|
killall git-daemon
|
||||||
sudo start ssh
|
|
||||||
|
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||||
|
echo 'PasswordAuthentication yes' | sudo tee -a /etc/sshd_config
|
||||||
|
else
|
||||||
|
sudo start ssh
|
||||||
|
fi
|
||||||
|
|
||||||
ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
|
ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
|
||||||
cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
|
cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
|
||||||
ssh-keyscan -t rsa localhost >>~/.ssh/known_hosts
|
ssh-keyscan -t rsa localhost >>~/.ssh/known_hosts
|
||||||
|
Loading…
Reference in New Issue
Block a user