Timeline for Bash script calls expect script with master SSH connection
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 29, 2014 at 12:55 | answer | added | KrimsKrams | timeline score: 0 | |
| Jan 9, 2014 at 6:45 | history | edited | Big McLargeHuge | CC BY-SA 3.0 |
added 138 characters in body
|
| Jan 9, 2014 at 6:32 | comment | added | Big McLargeHuge | @Gilles I removed all mention of PHP from the question. For now, I just want to get this to work from the console. | |
| Jan 9, 2014 at 6:30 | history | edited | Big McLargeHuge | CC BY-SA 3.0 |
Try again
|
| Jan 1, 2014 at 23:43 | comment | added | Big McLargeHuge | I'm sure the password is correct and I can log in from terminal with those credentials. The user enters the password in a web form (PHP), then the server passes the password to the bash script. Since the user doesn't see the terminal window, I can't have them enter the password there. | |
| Jan 1, 2014 at 23:24 | comment | added | Gilles 'SO- stop being evil' |
Do not the password on the command line. It can be snooped by other users if they run ps at the right time. It's safe to pass the password in an environment variable ($::env(PASSWORD) in Tcl).
|
|
| Jan 1, 2014 at 23:22 | comment | added | Gilles 'SO- stop being evil' | Where will the user be typing the password? Why not run the master ssh command in a terminal and make the user enter the password there? | |
| Jan 1, 2014 at 23:21 | comment | added | Gilles 'SO- stop being evil' | Are you sure that the password is correct and that the server accepts root login with a password? Does it work if you aren't using the expect script? | |
| Jan 1, 2014 at 22:08 | history | edited | Big McLargeHuge | CC BY-SA 3.0 |
added 2091 characters in body
|
| Jan 1, 2014 at 20:04 | history | edited | jasonwryan | CC BY-SA 3.0 |
Title
|
| Jan 1, 2014 at 19:55 | answer | added | DopeGhoti | timeline score: 4 | |
| Jan 1, 2014 at 19:49 | history | asked | Big McLargeHuge | CC BY-SA 3.0 |