<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
Expected behavior
specifying the command line arg -rpcauth={user}:{salt}${hash} from the output of rpcauth.py should allow you to authenticate with the user and password even when there is not a config file
Actual behavior
rpc command returns error: Authorization failed: Incorrect rpcuser or rpcpassword
To reproduce
run bitcoind version 0.20.1 with the command line arg -rpcauth={user}:{salt}${hash} from the output of rpcauth.py without creating a bitcoin.conf file. Then try to connect to the rpc with the username and password.
System information
bitcoind version 0.20.1 for linux downloaded from the website OS: ubuntu