Hi,
I am facing the issue 'Can't connect to any URI:....' while committing code to Github from Eclipse. I have also generated SSH keys for my machine and added to the Github account. Please help me out...
Thanks!
Hi,
I am facing the issue 'Can't connect to any URI:....' while committing code to Github from Eclipse. I have also generated SSH keys for my machine and added to the Github account. Please help me out...
Thanks!
To resolve this issue, do the followings
Thanks
I faced the same issue while migrating my project from github to bitbucket and this is how I resolved it:
Introduction: I will describe the ssh key usage here. A user generates a unique key to connect to remote machines using ssh. So you can create it locally. After, user uploads the keys to the remote machines where want to connect without password and more securely. On Git, the same thing happens, user creates a ssh key and uploads the generated key value to the git system providers like Github or Birbucket. After uploading your unique key, you must configure your development environment to let your git system provider communicate providing security over ssh key.
1) I was using ssh key to push my commits to remote with github in eclipse, the ssh key is set at window -> preferences -> General -> Network Connections -> SSH2
for eclipse (on git pushes, this ssh key is used if set). If you do not have any ssh keys on your machine then follow this article to generate one for you and set it into eclipse at the path above.
2) In your github or bitbucke account, find the screen where you can save your ssh key. For bitbucket, it is at https://bitbucket.org/account/user/[user-name]/ssh-keys/. '[user-name]' here is your user name at bitbucket. Open your 'id_dsa.pub' file (where you generated your ssh key) with a text editor, select all, copy and paste into your github/bitbucket accounts' ssh key addition section and then click add.
3) At eclipse, be sure to use the 'ssh' GIT URI for your project. Go to Window -> Preferences -> Team -> Git -> Configuration
, click 'Repository Settings
' tab and paste your GIT ssh URI to remote.origin.url
.
4) Finally try to push your commits to remote. You mustn't face any errors, if you have please comment under my answer.
Regards...
In your Eclipse Editor, Right click on your project -> Team -> Remote -> Configure Push to Upstream
Once the window opens, click "change..." button. Now you'll get a window called 'Select a URI'.
In the authentication part, Enter your GitHub username and DO NOT Enter your GitHub password. For this, you need to create a 'personal access token' from Github. And ENTER the 'personal access token' instead of your GitHub password, in order to connect the repository.
Please refer to the following websites for a better understanding:
If you have generate ssh keys, then you should use an ssh url
git@github.com:user/repo
If you keep using https, then you need to enter in Eclipse your username and GitHub password: see "egit - not authorized".
I faced the same issue but its got resolved now by generating and passing the access token as password while connecting with the local repo of eclipse.
for reference:-https://www.youtube.com/watch?v=lMQmTcBmq-U (this video is pretty helpful),hope it helps.
Copy this token and paste it in the authentication prompt where its asking for user name and password.
For user name put your github user name and under password use the newly generated Classic token and commit the code..
Hope this helps !!!! :)
This can be associated with BitBucket (example) problem. Be patient and wait for them to solve this issue. If it worked before for you it will work again as soon as they fix the problem.
I faced with the same issue, but my problem solved by the below steps I changed the setting then it is worked for me Go to Window -> Preferences -> General -> Network Connections in Active Provider select Native option
Just Create a personal Access token and use it instead of password. If you are wondering how you create that, then please checkout the link below .Just Click here