Skip to main content
13 votes

error : incorrect rpcuser or rpcpassword (authorization failed)

I was having the same problem and just managed to fix it now. Since the file bitcoin.conf does not exist inside ~/.bitcoin, Just create one. Here's what did: vi ~/.bitcoin/bitcoin.conf Enter ...
tormuto's user avatar
  • 231
5 votes
Accepted

Does rpcpassword need to be non-obvious in bitcoind?

By default the RPC interface is only exposed to localhost (127.0.0.1 and ::1), not to the world. In that setting, you need an RPC password only to protect against untrusted local users on your system (...
Pieter Wuille's user avatar
5 votes
Accepted

How to set up Lightning Network conf file. RPC user / password? and zmqpubraw?

So in Bitcoind you can define authentication via an rpc interface (remote procedure call). In the config file of Bitcoind which is usually located in ~/.bitcoin/bitcoin.conf you can set the values for ...
Rene Pickhardt's user avatar
4 votes
Accepted

Why is the challenge scalar multiplied with the private key scalar In the Schnorr identification protocol?

This is trivial to forge. Just to make sure we're on the same page, this is your protocol: Alice has private key x, Bob has public key Q: Alice generates k, computes R = kG, and sends R to Bob. Bob ...
Pieter Wuille's user avatar
4 votes
Accepted

How in the Bitcoin world one prove that a public key is authentic?

You are not sending with public key. You broadcast the transaction message that is signed with private key that only the owner of the coins has. (you can consider signing to be analogous to ...
croraf's user avatar
  • 1,248
4 votes
Accepted

What should you set as rpcpassword and rpcusername in BitCoin?

I suggest you don't use rpcuser and password if you don't need to. If you don't set them, Bitcoin Core will use a cookie in your .bitcoin directory as a mean to identify you. Besides rpcuser and ...
Sosthène's user avatar
  • 663
3 votes

Does rpcpassword need to be non-obvious in bitcoind?

The RPC interface is not exposed to anything except localhost by default. So other people on your network, nor people on the internet, can access it unless you have explicitly enabled outside access ...
Ava Chow's user avatar
  • 71.5k
3 votes
Accepted

How to add a second user with SSH access to my Ubuntu PC running Bitcoin Core?

You don't need to grant someone access to the entire machine to be able to use bitcoin-cli. You can provision credentials using the rpcauth parameter in bitcoin.conf (it may be defined multiple times ...
Raghav Sood's user avatar
  • 17.2k
2 votes
Accepted

bitcoin-cli failed with error: incorrect rpcuser or rpcpassword

re-compiled on an Ubuntu system, fresh from github.com: $ uname -a Linux ubuntu-ae 4.10.0-19-generic $ bitcoind -version Bitcoin Core Daemon version v0.15.99.0-g96ac26e5662 $ bitcoind -testnet -...
pebwindkraft's user avatar
  • 5,106
2 votes
Accepted

Disabling GreenAddress 2FA ∵ Google Authenticator doesn't generate the correct OTPs for it

The only reason I can think of that would result in the above with a valid OTP seed is invalid OTP settings (but default should work for Google Auth) OR incorrect time on the device OR invalid time (...
Lawrence Nahum's user avatar
2 votes
Accepted

bitcoind: incorrect rpcuser or rpcpassword (authorization failed)

Despite I run both bitcoind and bitcoin-cli as the same user, it for some reason fails to find my personal config file located in standard location: $HOME/.bitcoin/bitcoin.conf So I have set up an ...
Vlastimil Burián's user avatar
2 votes

Why bother checking both public key and signature in P2PKH transactions?

There is spending condition and ownership condition. The spending condition is set by the previous sender of the funds in the pubkey script: “proof that you can create the hash which belongs to this ...
pebwindkraft's user avatar
  • 5,106
2 votes
Accepted

Why bother checking both public key and signature in P2PKH transactions?

1) The addresses would obsolete after one use. 2) If someone does a Sybil attack, s/he can prevent the transactions from relaying (which may also happen now), but also s/he can make a fake ...
MCCCS's user avatar
  • 10.2k
2 votes

Bitcoind to use static RPC authentication cookie from file?

You can't. The cookie file is for bitcoind to write it's automatically generated credentials to for other software to read. If you want to set the RPC credentials, you need to do so within the bitcoin....
Ava Chow's user avatar
  • 71.5k
2 votes

How to connect LND to bitcoind RPC with authentication cookie stored in a custom folder?

It is supported according to the LND installation guide NOTE: The auth parameters rpcuser and rpcpass parameters can typically be determined by lnd for a bitcoind instance running under the same user,...
meshcollider's user avatar
  • 11.9k
1 vote
Accepted

Is it possible to configure c-lightning cookie based auth to bitcoind as opposed to rpcuser/rpcpassword?

Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword? Yes it works with .cookie now. It is automatic, it is the positive side effect of c-...
Michael Folkson's user avatar
1 vote

Beneficial proofs of work

Your first point is indeed right: The BTC puzzle is only useful for ensuring the security of the blockchain. Onto your next question: One of the first attempts to define a "useful" PoW was Primecoin, ...
wlad's user avatar
  • 177
1 vote

What is rpcuser?

No you can define the rpcuser and rpcpassword in the bitcoin.conf file itself. Usually it is commented, you can uncomment the line rpcuser and rpcpassword and input your username and password which ...
manishm's user avatar
  • 11
1 vote

How would we know the real Satoshi?

The way it works is by the public/private key cryptography Satoshi has shared his public key used to verify signatures here: https://bitcointalk.org/Satoshi_Nakamoto.asc -----BEGIN PGP PUBLIC KEY ...
Daniel Georgiev's user avatar
1 vote

How in the Bitcoin world one prove that a public key is authentic?

Then, why I cannot broadcast to the community that the public key "hjf734hkjf" is sending 100 bitcoins to me? That is not how Bitcoin works. First of all, you do not send from a public key or an ...
Ava Chow's user avatar
  • 71.5k
1 vote
Accepted

Do you need to change 'rpcuser' and 'rpcpassword' for each bitcoind node you run?

The rpc user/pass is only needed if you're planning to access the node via RPC. If you're running Armory on top of it, for example, that requires RPC and hence you would need it (Armory auto-creates ...
Jimmy Song's user avatar
  • 7,779

Only top scored, non community-wiki answers of a minimum length are eligible