JohnSundell/ShellOut

How to enter my password?

NeverObsess opened this issue · 2 comments

for example:

  • I need to enter the password when running a command with sudo.
  • I need to enter [y/N] when running a command that needs to be confirmed.
  • ...

How can I do this?

varyP commented

Same problem for me, while deploying Publish blog, ShellOut is unable to ask for password.
Using the --deploy flag in Xcode scheme, i get

[info] fatal: could not read Password for 'https://<username>@github.com': Device not configured: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/ErrorType.swift, line 20

Running via terminal does nothing. Just gets stuck.

There is a workaround for your password problem, Install sshpass 👇🏻
apt install sshpass

You can use sshpass -p[yourpasswordhere].