-
Notifications
You must be signed in to change notification settings - Fork 10
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
Really strange problem with ed25519 key request #12
Comments
I am having the same problem with Ubuntu 19
|
I do not know whats going on. I do not have much time to fing a solution right now and since it is only the database part and that during development is the not-so-updated part of a website for now I am just export/import the db manually. |
Hi @AndreaBarghigiani , first of all, my bad, I'm really confused. For example I did not understand if you have the If it's in your docker image, you're probably mounting your host's addSSHKey() {
ssh-add $HOME/.ssh/id_rsa
} ? Next, for the stats: you'd like to use ED25519 cos it's more secure or, let me say, for science? Or you have sort of restrictions? If I had no restrictions, instead of relying on manual operations, I'd spawn out a new RSA key; at least temporarily. This is even more confusing for me:
Let's start saying that Wordmove does nowise search for a specific key. Your SSH is searching for that key, probably found it, and is trying to use it, but AFAIK Wordmove's breaking because (at least) its net-ssh implementation needs an update. But your machine is trying to use an ED25519 key, not Wordmove. It simply cannot. So you could try to find it, move, delete, don't know what. Have I added enough questions and confusion? 😄 |
Hi @pioneerskies I understand that my post could be a bit messy and I thank you to propose the questions that help me clarify it. 1. Why don't you add $HOME in your path? root@e4206aba946a:/html# ssh-add $HOME/.ssh/id_rsa
Could not open a connection to your authentication agent.
root@e4206aba946a:/html# ssh-add /root/.ssh/id_rsa
Could not open a connection to your authentication agent. My Running the same command from the shell of my OS works fine also. Do you want to use ED25519? What about the hosting? It does not happen everywhere Even the But on the laptop I can sync even the database with no ED25519 request. SOLUTION 🎉🎉🎉I found a solution but I hope you can help me understand why it is working... I've Googled the error message So I've done it and added my key: iMac-di-Andrea:bioam abarghigiani$ docker exec -it bioam_wordmove_1 /bin/bash
root@e4206aba946a:/html# eval `ssh-agent -s`
Agent pid 32
root@e4206aba946a:/html# ssh-add /root/.ssh/id_rsa
Enter passphrase for /root/.ssh/id_rsa:
Identity added: /root/.ssh/id_rsa Once I've done it I can push/pull also the database with no problems. The question is why I have to start Anyway I am waiting your answer (you do not have to rush) before looking for a way to automate the start of Thank you a lot for all your help, your comment let me figure out how to solve the problem 😉 |
Try adding this to your docker-compose under wordmove
|
Hi @Gadgitmatic and thank you for the suggestion but this solution is not good for me. I've added the line like so:
But I still get the same error. I have to run |
FWIW I'm using GitLab CI to do continuous delivery using docker-wordmove and the official advised strategy is to use I think we should consider this a standard way to manage ssh-keys inside docker :) Thus I'm going to closing this issue. Thanks to everyone who has contributed! 🎉 |
Hi all, Any hints on how to do that? Thanks a lot, Jan |
@jankocian IMO it depends on the context where you're running the docker image. Maybe overwriting the default entrypoint prepending those commands? |
I've integrated the wordmove image into a WP Local Docker environment. My docker-compose.yml being (working config):
I run the wordmove as such Forgive my inexperience with Docker, after an hour+ of googling & tinkering, I couldn't get it to work. Any change of the entrypoint resulted to the container exiting right after start. I also had to set the "command" explicitly in docker-compose (just copied over from the Dockerfile), otherwise the container exited even with the default entrypoint of Thanks a lot for help! Btw. is there a reason not to include the "fix" into the mount-ssh.sh? |
Hi all,
I am writing here even if there was an active discussion in the wordmove repository because I am running the Docker WordMove container and I got the same strange error as in the other discussion:
The problem is that on my laptop (MacBook Pro) that is updated in the same way of this Mac (recently formatted) I do not have the same error and the server from where I am pulling is the same.
As I read the solution of @TylerBurners here I've tryed to do the same but with no luck.
Reading about the differences of
.bash_profile
and.bashrc
in this good article I've updated my.bash_profile
as follow:This will let me read the function in
.bashrc
that should solve this problem as wrote here:This soution does not work. Maybe because I am running in a container and the user is not
abarghigiani
butroot
.FYI as I wrote here I'm used to run WordMove commands using
/bin/bash/
asENTRYPOINT
like so:docker exec -it container_wordmove_name /bin/bash
My hosting let me use only DSA or RSA keys and I can not use ED25519 😞
I've done many tests but I really do not understand where is the difference between this Mac and the MacBook.
Thank you in advance for your help guys, if you need any more information please ask!
The text was updated successfully, but these errors were encountered: