JT Thompson
I need to sudo to my server after logging in with SFTP over SSH.
For security we do not allow direct logins with root, so we use individual accounts, then su. For my client I have a detection then make an auto entry. so it looks like this:
enter: su
expect: password
send: *******
So basically i'm typing su, then when prompted entering the password.
I can't figure out how to structure this in the 'perform command' line because i cannot do this in one stroke, it takes a request, response then answer.
I cant seem to locate where to do this. i can login fine using my keyfile, i just need to su once in.
For security we do not allow direct logins with root, so we use individual accounts, then su. For my client I have a detection then make an auto entry. so it looks like this:
enter: su
expect: password
send: *******
So basically i'm typing su, then when prompted entering the password.
I can't figure out how to structure this in the 'perform command' line because i cannot do this in one stroke, it takes a request, response then answer.
I cant seem to locate where to do this. i can login fine using my keyfile, i just need to su once in.