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.
Sudo after login
-
- Posts: 4
- Joined: Sat Mar 15, 2014 5:42 am
Sudo after login
Last edited by JT Thompson on Sat Mar 15, 2014 5:48 am, edited 1 time in total.
-
- Posts: 4
- Joined: Sat Mar 15, 2014 5:42 am
Re: Sudo after login
Seriously? this garbage is 'premium' support?
-
- Posts: 12031
- Joined: Thu Oct 11, 2001 1:24 pm
- Display name: Mat (SmartFTP)
- Contact:
Re: Sudo after login
Wrong forum and wrong attitude.