Windows 10 Host key verification failed - windows

The company I work on has it's own git server.
When I execute "composer update" I get the error "Host key verification failed."
I have tryed the solutions from here Git error: "Host Key Verification Failed" when connecting to remote repository
after deleting the contents on my C:/Users/myuser/.ssh/known_hosts.
A knew key was created in this file, after I executed the solution from the link above, but I still get the same error...
Any ideas?

Related

Can't clone remote git repo from cPanel to local PC

I've created GIT repo at my account of shared hosting via cPanel. Then I've installed Git to my local PC with Windows, right-clicked local repo folder and selected the command "Git Bash Here". Next I've run in CMD the command like
git clone ssh://user123#example.com/home/user123/public_html/repo
First I've received
The authenticity of host 'example.com (...)' can't be established.
ED25519 key fingerprint is SHA256:...
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?
I've typed "yes" and received the error
Warning: Permanently added 'example.com' (ED25519) to the list of known hosts.
user123#example.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Next I've copy-pasted the file id_rsa from the folder .ssh at my hosting to my local folder C:/Users/MyUserName/.ssh
Now if I run the command of cloning I receive
Enter passphrase for key '/c/Users/MyUserName/.ssh/id_rsa':
Why? What is the passphrase and where can I get it?
The pass-phrase is the password(s) you used when you created the ssh keys. You must use those password(s) to unlock access to the ssh keys.
Note that the warnings (about whether the host is known or not) are just that: warnings. The first time you connect to some other system, your ssh software checks the identity message that comes from that host. But there's nothing to check against, so you get the warnings. After that, the identity is saved, so the second, third, etc., times that you connect to the host, your ssh makes sure it identifies itself the same way. (This is a fancied-up variant of having the host tell you its password, which you then check to make sure you're still talking to the same guy.)
Of course, the host doesn't know whether the guy claiming to be you is really you, so the host demands that you provide your password. Your "password" in this case is your ssh key ... and your ssh key is protected with another password (or rather, "pass phrase": you can use multiple words). So you give your machine your "get me the password" pass-phrase, after which your machine gets the password to give to their host.

git clone SSL protocol error

I am trying to clone a git from a remote server in windows 7.
curl -v https://myserver
works git clone I get a:
fatal: unable to access 'https://myserver': Unknown SSL protocol error in connection to myserver:8080
another user using my computer was able to do it though. It's only my account that doesn't work?
any ideas?
thanks

Xcode: error when adding repository

I want connect to myServer but it encounters an error. I've been searching on Google, but no answer.
What I did is:
Running Xcode
Creating a new project
Going to Preferences
Account > Add repository
Insert svn+ssh://myID#myserver.org/~~~/
This is the error message I get:
Authentication failed because SSH could not connect to the repository "sample".
How do I solve this?
in terminal
ssh-keygen -R myServer

Git on Windows fails to push local branch

I installed Git Client in Windows and have created a initial branch locally. Currently I am trying to push the first version to the Git Server. But it does not get through successfully. I received the following error message:
Pushing to git#(my_git_server).git
FATAL ERROR: Network error: Connection timed out
fatal: The remote end hung up unexpectedly
Here is what I did for the setup:
Generate public and private key:
ssh-keygen -t rsa -C "(my email id)"
Copy the public key to Git server
Use KeyGen.exe to convert open ssh key to Putty private key
Load the private key with pageant.
Try to push the local branch to the server. (Failed)
I tried to SSH to the git Server and received the following error message:
server unexpected closed network connection.
Please kindly help me out.

Git with putty on windows

When attempting to push / pull over ssh, git is failing with the following error:
"C:\Program Files\Git\bin\git.exe" push -u --recurse-submodules=check -progress "testremote" project:project
Using username "git-receive-pack 'ec2-user".
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Done
The remote "testremote" is setup as "ssh://ec2-user#sweeb.net:gittest.git" and I'm using an existing keypair that I have used with PuTTY before without issue.
Pageant is running, with my key loaded.
I think the issue is the line "Using username "git-receive-pack 'ec2-user"." - I assumed git's commands were breaking on windows thanks to the space in "Program Files" so I've tried to surround everything with double quotes, but that doesn't seem to be working. Has anyone seen anything like this before?
Windows vars:
GIT_SSH=C:\PuTTY\plink.exe
PATH=[...];"C:\Program Files\Git\cmd";"C:\Program Files\Git\libexec\git-core\";"C:\Program Files\Git\bin\"
This was solved by removing "ssh://", that's implicit in Git Extensions apparently.

Resources