-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to switch root and use exec function #292
Comments
|
i got error: if i use sshClient start new session,i got test,not root. How can I solve this problem?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The remote machine does not support root user SSH connection. Using test user SSH to connect to the remote machine to obtain session A, I can smoothly switch to root user through the session shell. Then, I execute whoami through the session exec command, prompting me that session A has been reused. How can I solve this problem?
The text was updated successfully, but these errors were encountered: