-
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.
Implement reproCommands for Azure SSH (#144)
This PR improves the Azure SSH debugging experience by adding reproduction commands for Azure SSH, which are displayed when invoking `p0 ssh` with the `--debug` option. It outputs all the `az` commands, as used by the P0 CLI, that are needed to manually reproduce the SSH connection process, as well as the final `ssh`/`scp` command too. I also included some minor refactoring which both made the implementation easier, as well as removed some redundancy from the `ssh` options we end up passing for Azure SSH (e.g., previously, we technically specified two separate private keys to `ssh`, the usual P0 CLI-managed key as well as the ephemeral SSH certificate private key generated by `az ssh cert`).
- Loading branch information
1 parent
65ba642
commit 1405ad8
Showing
7 changed files
with
111 additions
and
45 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
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
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
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