VMware Cloud Community
ashu_emc
Contributor
Contributor

Nested session to execute the command with root login to a server using SSHSession.

We have to execute certain command in root login.  Root login is not open directly to the server. We have to login first with "admin" then need to do "su -" to get the root login. Then after we can execute the command. We are using SSHSession API from VMware to establish the session in VRO 7.5 workflow. Using this API we are allowed to establish the session with certain user but as per requirement  need to execute the command in another user's session. Need help here to provide the API  establish the session for nested user or we can run the command in root user shell from admin user session (from SSHSession).

vSphere Documentation Center

0 Kudos
0 Replies