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,070 points
214 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,010 points

Related Questions In Blockchain

0 votes
1 answer

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
• 67,290 points
87 views
0 votes
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
• 67,290 points
54 views
0 votes
1 answer

geth personal.newAccount() shows password error

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

answered Jan 16 in Blockchain by Omkar
• 67,290 points
20 views
0 votes
1 answer

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

Seems like the geth.ipc file is not present in ...READ MORE

answered Jan 16 in Blockchain by Omkar
• 67,290 points
74 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
126 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

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

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 319 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,010 points
92 views