Geth account password on command line

0 votes
geth --password mYp@ssw0rd account new

Using the above code line throws the following error:

Fatal: Failed to read password file: open mYp@ssw0rd: no such file or directory

Is there any way to provide the password directly on the command line using Geth?

May 29, 2018 in Blockchain by nsv999
• 5,500 points
2,224 views

1 answer to this question.

0 votes

You've got the following two ways to create your account from command line:

geth account new --password <(echo $mypassword)
geth account new --password [arg] 

where,

[arg] = the name of a file containing the password and not the password itself.

One more way is to start your network in one window of PowerShell (in windows) and then, in a new PowerShell window, execute the folllowing command:

geth attach
and then use management APIs
answered May 29, 2018 by Perry
• 17,100 points

Related Questions In Blockchain

+1 vote
2 answers

Not able to create new account in geth for private ethereum network

Looks like the account you are trying ...READ MORE

answered Dec 6, 2018 in Blockchain by Omkar
• 69,230 points
4,019 views
–1 vote
1 answer

Unable to create account in geth

Well, that's not how you create a ...READ MORE

answered Dec 28, 2018 in Blockchain by Omkar
• 69,230 points
697 views
0 votes
1 answer

geth personal.newAccount() shows password error

You have to pass the password as ...READ MORE

answered Jan 16, 2019 in Blockchain by Omkar
• 69,230 points
899 views
0 votes
2 answers

“geth attach” command shows error: Fatal: Unable to attach to remote geth

please check from root, sudo -i geth attach READ MORE

answered Nov 7, 2020 in Blockchain by balachandar
• 140 points
7,025 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,885 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,402 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,403 views
0 votes
1 answer

geth personal.newAccount()\npassword command broke Ethereum CLI

The issue is with your command. It's ...READ MORE

answered Aug 1, 2018 in Blockchain by Perry
• 17,100 points
807 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP