Skip to main content
2 of 3
Grammar
jasonwryan
  • 74.8k
  • 35
  • 204
  • 230

How to switch user with pre-configured credentials in SSH Terminal after logging in as standard user

I was wondering how to execute a command file where: After logging in as a standard user, I want to switch user to "username" with password being "password", I can successfully execute the command.txt using a batch file by testing echo.

However, I have no clue how to include the password in the command when trying to switch user.

P.S This is when I am already inside the SSH session as a standard user.