-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSH Command: support interactive commands using ssh (#27)
This PR adds an option to the `p0 ssh` command that allows users to execute commands on remote machines. We use a variadic position argument which matches up with how ssh handles these commands. ```bash ssh ... [command [argument ...]] ``` example usage: ```bash p0 ssh <instance> echo miguel was here p0 ssh <instance> echo 'miguel "was here"' p0 ssh <instance> echo "hi; miguel" ``` ![image](https://github.com/p0-security/p0cli/assets/12995427/05315661-6996-47bf-a630-81c79619121a) In order to execute these commands the existing session document was modified to support a command if present. See [p0-security/app/pull/1437](p0-security/app#1437) for more details on the new document.
- Loading branch information
Showing
2 changed files
with
63 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters