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,030 points
149 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 16,450 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
• 65,850 points
36 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
• 65,850 points
46 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
• 65,850 points
18 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
• 65,850 points
49 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
64 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 114 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
• 16,450 points
65 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.