Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/home/travis/.ssh/known_hosts: Permission denied #4748

Closed
abesto opened this issue Sep 4, 2015 · 3 comments
Closed

/home/travis/.ssh/known_hosts: Permission denied #4748

abesto opened this issue Sep 4, 2015 · 3 comments

Comments

@abesto
Copy link

abesto commented Sep 4, 2015

This has caused confusion, probably a build failure in https://travis-ci.org/openzipkin/docker-zipkin/builds/78704161, the relevant message is around the middle:

Failed to add the RSA host key for IP address '192.30.252.130' to the list of known hosts (/home/travis/.ssh/known_hosts).

whois shows the IP belongs to GitHub:

whois 192.30.252.130 | grep OrgName
OrgName:        GitHub, Inc.

To work around this a bit more forcefully I've added github.com as described in http://docs.travis-ci.com/user/ssh-known-hosts/, but that also failed in https://travis-ci.org/openzipkin/docker-zipkin/builds/78704874 (even though the build failed for an unrelated reason):

Adding ssh known hosts (BETA)
$ ssh-keyscan -t rsa,dsa,ecdsa -H github.com 2>&1 | tee -a $HOME/.ssh/known_hosts
tee: /home/travis/.ssh/known_hosts: Permission denied
@BanzaiMan
Copy link
Contributor

Sorry about the problem. The file has mode 400 for some reason, so you can't write to it. You should add chmod u+w ~/.ssh/known_hosts until we fix the image.

(I created an internal ticket to track this.)

Thanks.

@abesto
Copy link
Author

abesto commented Sep 5, 2015

Great, thanks!

@BanzaiMan
Copy link
Contributor

I think this is fixed now. Please reopen it if isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants