Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • This answer is nearly 10 years old at this point, but I hope nobody uses the provided script because it puts the password in the command line where any other process can view it. If you don't believe me, open a shell and type ps aux and look at all the command line arguments of all the processes running on your computer. Instead of passwords, use public keys. Then, you won't be prompted for a password (unless you password-protected the key, of course). Commented Jun 14 at 21:10