feat: SSH support ssh-agent (#433)

This commit is contained in:
hstyi
2025-03-30 12:48:14 +08:00
committed by GitHub
parent c714f33a44
commit 283404b6b9
12 changed files with 183 additions and 103 deletions

View File

@@ -1,5 +1,6 @@
package app.termora
@Suppress("CascadeIf")
class EditHostOptionsPane(private val host: Host) : HostOptionsPane() {
init {
generalOption.portTextField.value = host.port
@@ -13,6 +14,8 @@ class EditHostOptionsPane(private val host: Host) : HostOptionsPane() {
generalOption.passwordTextField.text = host.authentication.password
} else if (host.authentication.type == AuthenticationType.PublicKey) {
generalOption.publicKeyComboBox.selectedItem = host.authentication.password
} else if (host.authentication.type == AuthenticationType.SSHAgent) {
generalOption.sshAgentComboBox.selectedItem = host.authentication.password
}
proxyOption.proxyTypeComboBox.selectedItem = host.proxy.type