Editing a file on remote server using shell script locally

Hi All,

I have below requirements for my project:

  1. Building a shell script which connects to a remote server
  2. running script on local machine as user 'A'
  3. connecting to server using user 'B' with password
  4. login with a powerbroker role 'P' (asks for same password as 'B') on that server
  5. edit a file and save it
  6. Exit from server

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.