Adding localhost as a remote scope to my Bit.dev project returns a permission denied error - bit.dev

I'd like to add a local scope server as a remote scope to my project. However, when I run bit remote add "http://localhost:3001" I get a error: permission to scope "" (http://localhost:3001) was denied along with a troubleshoot url that redirects me to the Bit homepage.
I'm running bit version 0.0.779, and work within a company proxy.
Setting up and running my local scope
Following these bare scope directions I do the following:
mkdir my-scope
cd my-scope
bit init --bare
bit start --port localhost:3001
Adding remote scope
In an existing, local react project I do the following:
bit init
bit add /path/to/my/compnent
bit remote add http://localhost:3001
Problem
Running bit remote add http:localhost:3001 returns:
error: permission to scope "" (http://localhost:3001) was denied
see troubleshooting at https://legacy-docs.bit.dev/docs/setup-authentication#authentication-issues
Does anyone know why I might be getting denied from setting localhost as my remote scope?

You can use the docker container to simplify the process of hosting scopes.
see details here - https://bit.dev/docs/scope/running-a-scope-server
regardless, it seems that the issue is just a typo, as you forgot to set // in the host url parameter of your command.

Related

Error when following instructions on "Hosting scopes"

I was trying to follow the instructions on hosting scopes (https://bit.dev/docs/scope/running-a-scope-server).
Commands entered:
docker run -it -p 4000:3000 bitcli/bit-server:latest
http://localhost:4000
bit remote add http://localhost:4000
I get the following error after the bit remote add command:
error: scope not found at /Users/tdugger/development/bit
There must be a step missing. The browser page shown does say the following, but I'm not sure what that means.
Set "defaultScope": "remote-scope" in workspace.jsonc
file and export components here.
Thanks for your help.

zsh: permission denied: /Users/ryanshumway/.ssh

New to programming, and my employer had setup my SSH with Gitlab for me.
Now that I'm learning more programming I thought, hey, I'll setup another SSH for my personal projects in Github.. and then I think it replaced my gitlab SSH, and now I'm not sure how to replace my GitHub ssh and my personal one, and I'm not able to get into the configure file and see anything.
I'm at the point where I can't modify either of them and I can't do anything (personal and work).
How do I get around this permission denied? It seems like there's no way to edit my config file or even see which keys are active
Check:
your current account: id -a
the rights associated with the ssh folder:
ls -alrth /User/ryanshumway
Make sure you are not using your terminal as root or any other account than ryanshumway

Github SSH issue 'Permission Denied'

I am stuck on this annoying (and common) issue running Manjaro (latest). SSH works just fine for me on my local network. I can connect to my file server and pi-hole just fine.
GitHub however is proving more difficult.
gh repo clone User/Reponame gives the following:
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Cloning into 'Reponame'...
warning: templates not found /usr/share/git-core/templates
The authenticity of host 'github.com (140.82.121.3)' can't be established.
RSA key fingerprint is SHA256:SomeLongNumberBlahBlah.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/USER/.ssh/known_hosts).
Load key "/home/USER/.ssh/id_rsa": Permission denied
git#github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exit status 128
Now I tried deleting my known_hosts, checking the file permission, creating new keys for my server/pi-hole and all works fine. I don't see why GH is struggling with permission. I've tried a few solutions but nothing seems to work for me. I've set my global user and email for github, I just can't get passed this step.
ssh -T git#github.com Asked for a passphrase and accepted it when I entered. Yay! I have both keys set and added to github.com via my browser etc. I must be missing something.
Still no change in the clone command. I am honestly stuck having read multiple threads on the subject. SSH always gets me :(

winexe error: Cannot connect to svcctl pipe. NT_STATUS_ACCESS_DENIED

Am trying to execute the following winexe command, but it throws 'ERROR: Cannot connect to svcctl pipe. NT_STATUS_ACCESS_DENIED.'
winexe -U domain/username%password //windows_machine ipconfig
debug info shows,
ERROR: smb_raw_open_recv - NT_STATUS_ACCESS_DENIED
ERROR: on_ctrl_pipe_error - NT_STATUS_ACCESS_DENIED
ERROR: Cannot open control pipe - NT_STATUS_ACCESS_DENIED
When i have 'winexesvc.exe' in Windows machine, the command works.
My understanding according to http://opensourceinfo.blogspot.com/ is that winexe itself creates winexesvc service, starts it and tries to connect to control pipe. If that's the case, what setting should i have in Windows to resolve Access Denied error and get the service installed successfully? Please correct me if am wrong.
I also came across similar issue in https://sourceforge.net/p/winexe/bugs/35/ post, but am unable to understand the given resolution 'I was trying to log on via a domain user, but only local users were configured'
Note that I have already set,
1. Network Access: Sharing and security model for
local accounts" to "Classic – local users authenticate as themselves
2. LocalAccountTokenFilterPolicy to 1.
So do we need to manually place winexesvc.exe in Windows machine for winexe to work or can we fix the above Access Denied error?
Thanks in advance.

Permission denied to new ssh user when pushing

I'm using terminal, I want to delete ssh keys from and old user (old_username) and set a new one (new_username). I have done as is in this tutorial.
When I run: ssh -T git#github.com I get the correct message:
`Hi new_username! You've successfully authenticated'.
But when I try to push a repository I get denied:
remote: Permission to new_username/test2.git denied to old_username.
fatal: unable to access 'https://github.com/new_username/test2/': The requested URL returned error: 403
I've tried deleting .ssh folder and setting again ssh, but the problem persists.
Using an https url means your ssh connection is not used. At all.
Try switching to ssh:
git clone git#github.com:new_username/test2
That will actually use your ssh credentials, meaning your public and private keys stored in ~/.shh/id_rsa(.pub).
If on Linux or OSX, check a file called ~/.netrc, which contains username/password information that most apps will use when connecting to remote servers. Yes, it even affects git via the https protocol. If you're using a frontend to connect to github, you probably need to clear its preferences so it stops trying to use the old username.