Skip to main content
added 39 characters in body
Source Link

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 file which is executed by a batch file when trying to switch user.

P.S This is when I am already inside the SSH session as a 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.

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 file which is executed by a batch file when trying to switch user.

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

Grammar
Source Link
jasonwryan
  • 74.8k
  • 35
  • 204
  • 230

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.

Many thanks in advance.

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 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.

Many thanks in advance.

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.

Source Link

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 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.

Many thanks in advance.