Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) on fork, windows 10 64x - rsa

First things first, I am a newbie and I struggle (Please show some empathy). So :
After formatting my computer,
I installed fork git client (Windows 10 x64)
My id_rsa was created and added to the server I do interact with (Belonging to my company)
By trying to do any normal operation, I stumble on an error screen (Image below)
Error screen
Message (Attempting to fetch) : Fetching origin
Permission denied, please try again.
Permission denied, please try again.
git#IP: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin
I don't have the password prompt in the client itself and in order to circumvent this issue, I found myself going through cmder for any action where it asks for password each time.
How can I solve this issue (Using only fork while the password is automatically operated for any action)
PS : I searched within the forum, solutions were for ubuntu as I lack the knowledge on how to tackle my issue.

Related

Why is WSL2 blocking me from editing/saving files on Windows 10 using VsCode?

I've used this setup for months and basically the context is that I messed with my WLS2 which used to work fine. I ended up unninstalling it using "apps and features" on settings, and then installing it again running "wsl --install" on PowerShell there is no more options for unninstalling it using the same "apps and featuress" and now every time I try to save a file I get an error:
Failed to save 'FILE': Unable to write file 'vscode remote://wsl+ubuntu/home/ (No permission (FileSystemError): Error: EACCES: permission denied, open '/home/')
I just want to understand what is happening and why although it worked well before, now it doesn't, and also how do i solve this problem...
One of my trials was running "chmod 777" or something like that (don't understand that really, just copying commands from the internet) but it ran over all my files even outside the WSL enviroment and after a while I just killed the process. It didn't work though, I got the same errors.

Fatal unable to access 'https://github.com/': The requested URL returned error: 403 - despite following all solutions?

I deleted my keychain credentials and generated a Personal Access Token on Github.
Once prompted for password in terminal, I entered my PAT (though I do not see the typed input on the screen) - I get an error every time. I went through the published solutions on Stack and nonetheless cannot push my root folders to the new repository on Github.
Is there anything else I can try or another way to upload the full folder with sub folders and file at once? I have GitHub Desktop but cannot see any changes in the history even though I cloned the repository.
My command line path:
...-MBP (project-name) % git push -u origin main
Username for 'https://github.com': (my username)
Password for 'https://(my username)#github.com':
remote: Permission to (my username)/to-do-list.git denied to (my username).
fatal: unable to access 'https://github.com/(my username)/(project-name).git/': The requested URL returned error: 403
I also got that same error.. what i did to resolve was to go back to setting, then generate another Personal Token Access Token, then below i selected the scopes, or permissions, to grant this token(this step i had skipped previously). Then clicked on Generate Token and the when i used the token again it worked.

Managing multiple GIT ssh keys

Having some issues with maintaining too many SSH keys in the same computer lately.
I have created two SSH keys in my computer for UserA(Company) and UserB(Personal). Both the ID's are created using different email ID
I am able to pull and push the code changes for UserA
But UserB is where I face trouble to push my code.
I am able to pull the code for UserB(Where repo is different than UserA)
While pushing the code I get the following error
ERROR: Permission to UserB/xxxxxx.git denied to UserA.
Please make sure you have the correct access rights
and the repository exists. ```
Feel bit strange to me. Can someone help me this ?
Starting from Git 2.3.0 you can use below command
GIT_SSH_COMMAND='ssh -i private_key_file' git clone user#host:repo.git
Solved !!
Created Gitconfig for personal and work using the following link,
https://medium.com/#trionkidnapper/ssh-keys-with-multiple-github-accounts-c67db56f191e
Sometimes you have the problem of too many keys stored in the ssh-agent.
Then the server refuses the connection after it offering too many keys.
This can be solved by force ssh to use only one specific key.
GIT_SSH_COMMAND='ssh -o IdentityAgent=none -i private_key_file' git <cmd>

sourceTree isn't letting me push to gitHub after supposedly typing my passcode wrong once

sourceTree isn't letting me push to gitHub after supposedly typing my passcode wrong once and now when I try to push to that remote it won't let me even after I deleted that remote and added it again. Here is the error Pushing to https://github.com/user/app.git
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/user/app.git/'
Thanks for any help in advance!!!
P.S. "user" and "app" are not the real names.
It's not Sourcetree, git-push is failing due to invalid credentials. Just try to re-setup your git credentials again as explained here.

Permission denied in accessing Opencart folder installed in a Centos OS

I have a problem with my installation in Centos. The problem is I can't access my front end page. If I open the front end there's only a blank page. But the admin part is ok. I already change the permission to 777.
These are the catalog, admin, download, image, system and vqmod.
I already checked the database connections and it is working in the admin part.
I don't know where did I go wrong.
If I navigate the folder like image. I got this error
Forbidden
You don't have permission to access /image/ on this server.
Apache/2.2.15 (CentOS) Server at giftregistrys3.metro.com.ph Port 80
I think the reason are the permissions. But I already change the permissions.. :(
Hope you can help me with this.