And I run this command bitcoind -testnet -printtoconsole and this bitcoin-cli -testnet -rpcuser123456 -rpcpassword1234564 getbalance notice that I intentionally changed -rpcpassword to a wrong password. On a standard single user desktop system, this isn't a big concern. (That would be pretty bad luck to have that run in the same moment that bitcoin-cli is, but consider the case where your system is running low on memory, causing bitcoin-cli to hang and also causing another program to crash, triggering a crash logger.). Anyone can explain this error? You can run bitcoind on one machine, and communicate with another over your LAN using bitcoind's json-RPC API. If a program on your computer crashes, a crash logging utility may include a list of your system's running processes in the log. However, it doesn't prevent the password from showing up in your system's process list while the command is running. The command is: bitcoin-cli encryptwallet mypassphrase. The list with all commands exposed through bitcoind's RPC API can be found here: or can be fetched with the command: bitcoin-cli help. It is really weird. You can disable the ability for users to list other users' processes by following the instructions at m/a/244357/94543.
I run this on the same Ubuntu.10 bitcoin-cli -testnet -rpcuser123456 -rpcpassword123456 getbalance, i get this result: error: incorrect rpcuser or rpcpassword (authorization failed) The second day I tried exactly the same way. Your solution successfully prevents the password from ending up in your /.bash_history file. Ultimately your xargs solution still results in the bitcoin-cli being run with the password as a command line argument. You didn't mention how you were trying to communicate so let's say for example if you're using. Bitcoin is a distributed, worldwide, decentralized digital money. And conveniently, it has the -stdin option allowing you to do that: bitcoin-cli -stdin walletpassphrase. Once bitcoind is running just hit your host machine's local network IP on port 8332 with your API calls. When I run this command bitcoind -testnet -printtoconsole -rpcuser123456 -rpcpassword123456, after bitcoind. Bitcoins are issued and managed without any central authority whatsoever: there is no government, company, or bank in charge of Bitcoin.