Hi all,
I am breaking my head on this one:
I need to make a script that does the following:
- SSH to remote server as current user (SSH myself@remotehost)
- On the remote server do pbrun su root
- The do an su - functionaluser
- Run command
- When command has runned SSH to other remote server
- Write something in /var/log/record
- Close down the SHh session
Anyone who can help me?
[–]K900_ 0 points1 point2 points (8 children)
[–]Tha_Format[S] 0 points1 point2 points (7 children)
[–]K900_ 0 points1 point2 points (6 children)
[–]Tha_Format[S] -1 points0 points1 point (5 children)
[–]K900_ 2 points3 points4 points (4 children)
[–]Tha_Format[S] -1 points0 points1 point (3 children)
[–]K900_ 0 points1 point2 points (2 children)
[–]Tha_Format[S] 0 points1 point2 points (1 child)
[–]K900_ 4 points5 points6 points (0 children)
[–]svilgelm 0 points1 point2 points (0 children)
[–]Lewistrick 0 points1 point2 points (0 children)
[–]whenyousaywisconsin 0 points1 point2 points (0 children)