Jump to content


Photo

Sudo after login


  • This topic is locked This topic is locked
4 replies to this topic

#1 John T

John T
  • Members
  • 4 posts

Posted 15 March 2014 - 05:47 AM

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.


Edited by John T, 15 March 2014 - 05:48 AM.


#2 John T

John T
  • Members
  • 4 posts

Posted 15 March 2014 - 08:10 PM

Hello?



#3 John T

John T
  • Members
  • 4 posts

Posted 17 March 2014 - 07:26 AM

...........



#4 John T

John T
  • Members
  • 4 posts

Posted 18 March 2014 - 12:47 PM

Seriously? this garbage is 'premium' support?



#5 mb

mb

    Developer

  • Administrators
  • 11878 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 18 March 2014 - 04:18 PM

Wrong forum and wrong attitude.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users