161 reputation
214
bio website
location
age
visits member for 1 year, 8 months
seen Apr 3 at 18:07

Mar
28
awarded  Popular Question
Jan
29
awarded  Popular Question
Jan
24
awarded  Popular Question
Jan
9
revised Bash script calls expect script with master SSH connection
added 138 characters in body
Jan
9
comment Bash script calls expect script with master SSH connection
@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
revised Bash script calls expect script with master SSH connection
Try again
Jan
9
accepted PHP exec expect script with SCP then SSH
Jan
1
comment Bash script calls expect script with master SSH connection
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
revised Bash script calls expect script with master SSH connection
added 2091 characters in body
Jan
1
comment Bash script calls expect script with master SSH connection
let us continue this discussion in chat
Jan
1
comment Bash script calls expect script with master SSH connection
Maybe I should clarify: this script is called from an app that prompts the user for a password. I don't understand at what point it becomes plain text, unless the expect -f upload.exp "$user" "$addr" "$pass" part is logged somewhere with the actual password?
Jan
1
comment Bash script calls expect script with master SSH connection
It's an argument passed to the script though. Is that okay?
Jan
1
comment Bash script calls expect script with master SSH connection
Who said password was hard coded? It's prompted from the user (which is btw a requirement).
Jan
1
asked Bash script calls expect script with master SSH connection
Jan
1
revised PHP exec expect script with SCP then SSH
This param should be lowercase
Jan
1
suggested suggested edit on PHP exec expect script with SCP then SSH
Dec
31
comment PHP exec expect script with SCP then SSH
Prompting the user for a password is a requirement I can't get around unfortunately. I should have specified this earlier. As for pulling the file from the remote end, there would still have to be at least two SSH connections made right?
Dec
31
revised PHP exec expect script with SCP then SSH
added 2 characters in body
Dec
31
asked PHP exec expect script with SCP then SSH
Dec
10
comment Dnsmasq white list for specific clients on network
That's not really a problem since I can block DNS requests (port 53) with iptables.