Page 1 of 1

Sudo after login

Posted: Sat Mar 15, 2014 5:47 am
by 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.

Re: Sudo after login

Posted: Sat Mar 15, 2014 8:10 pm
by JT Thompson
Hello?

Re: Sudo after login

Posted: Mon Mar 17, 2014 7:26 am
by JT Thompson
...........

Re: Sudo after login

Posted: Tue Mar 18, 2014 12:47 pm
by JT Thompson
Seriously? this garbage is 'premium' support?

Re: Sudo after login

Posted: Tue Mar 18, 2014 4:18 pm
by mb
Wrong forum and wrong attitude.