-
-
Notifications
You must be signed in to change notification settings - Fork 44
feat: private key with passphrase #166
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
Conversation
|
Can't wait for this to get merge! |
Co-authored-by: khalidmaquilang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for SSH private key authentication with passphrase protection, addressing the need to connect to hosts that use encrypted private keys.
- Added passphrase field to the SSH connection configuration interface
- Enhanced the SSH connection form to include a passphrase input field for key-based authentication
- Updated SSH connection logic to handle passphrase-protected private keys
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/types/ssh.type.ts | Added passphrase field to ConnectionConfig interface |
| src/renderer/views/SSHConnectView.vue | Added passphrase input field in the SSH connection form |
| src/main/utils/ssh.ts | Updated SSH configuration to support passphrase and authentication handlers |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| passphrase: '', | ||
| authHandler: undefined, |
Copilot
AI
Sep 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The authHandler property is being added to the config object but it's not defined in the type definition. This could cause TypeScript compilation errors or runtime issues if the SSH client expects a specific type for this property.
Add the possibility to connect by ssh to host with private key with passphrase
fixes #146