update key in db
This commit is contained in:
parent
8157baf782
commit
f68d7c2c94
4 changed files with 58 additions and 1 deletions
2
agent.go
2
agent.go
|
|
@ -23,7 +23,7 @@ func startEphemeralAgent(pemData []byte, target string) (string, func(), error)
|
|||
|
||||
if err != nil {
|
||||
if _, ok := err.(*ssh.PassphraseMissingError); ok {
|
||||
fmt.Printf("\033[1;32m? Gosh:\033[0m Key for \033[1m%s\033[0m is encrypted. Enter passphrase: ", target)
|
||||
fmt.Printf("\033[1;32mGosh:\033[0m Key for \033[1m%s\033[0m is encrypted. Enter passphrase: ", target)
|
||||
pass, readErr := term.ReadPassword(int(syscall.Stdin))
|
||||
fmt.Println()
|
||||
if readErr != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue