Timeline for Skip password prompt and pass password to ssh-add in script
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 29, 2021 at 18:18 | comment | added | secemp9 |
Thanks for mentioning this; forgot to add a \r as i usually do when using expect ...Edited. @blackyellow
|
|
| Mar 29, 2021 at 18:17 | history | edited | secemp9 | CC BY-SA 4.0 |
added missing newline in script
|
| Mar 29, 2021 at 14:03 | vote | accept | CommunityBot | ||
| Mar 29, 2021 at 14:03 | comment | added | user462354 |
Update: The reason why it wasn't working is because I was doing send -- "$password", but this sends the password without "pressing enter". I changed it to send -- "$password\r" it worked! Thanks!
|
|
| Mar 29, 2021 at 13:45 | comment | added | user462354 | That did not work :( . It showed a prompt for every rsa key and kept waiting for me to insert the password. I'm looking for a way to avoid any manual operation (such as typing the password or pasting it from the clipboard manually) | |
| Mar 25, 2021 at 1:37 | comment | added | user462354 |
The solution using expect sounds interesting (the program itself seems interesting). I will try that out
|
|
| Mar 24, 2021 at 18:00 | history | edited | secemp9 | CC BY-SA 4.0 |
added 391 characters in body
|
| Mar 24, 2021 at 17:54 | history | answered | secemp9 | CC BY-SA 4.0 |