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

Empty SECRET_SSH_PRIVATE_KEY generates an empty id_rsa file #81

Closed
asgorobets opened this issue Aug 23, 2018 · 0 comments
Closed

Empty SECRET_SSH_PRIVATE_KEY generates an empty id_rsa file #81

asgorobets opened this issue Aug 23, 2018 · 0 comments

Comments

@asgorobets
Copy link
Contributor

Empty SECRET_SSH_PRIVATE_KEY generates an empty id_rsa file and is causing issues with SSH authentication, I assume id_rsa is first key SSH will try to use, see command below for proof.

I believe the issue is present since 2.1 version of Docksal when this private key variable was introduced

Empty key:

fin exec cat /home/docker/.ssh/id_rsa                                                                                                                                                                  

Trying to SSH somewhere will try to use that key and ask for a passphrase (not sure why):

fin exec ssh -vvv example.com
.............
debug1: Trying private key: /home/docker/.ssh/id_rsa
Enter passphrase for key '/home/docker/.ssh/id_rsa':
lmakarov added a commit that referenced this issue Aug 24, 2018
Fix issue with empty SECRET_SSH_PRIVATE_KEY prevent SSH authentication. Closes #81
@lmakarov lmakarov mentioned this issue Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant