Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

add support for windows ssh-agent #7

Merged

Conversation

tobiaskohlbau
Copy link
Collaborator

Windows 10 has the optional feature for an ssh client.
This package comes with a backed in ssh-agent which
utilizes windows named pipes instead of unix sockets.
This CL adds support to communicate which such ssh-agent.
This is mainly needed to enable ssh agents which do
not support the pageant established "protocol".

Signed-off-by: Tobias Kohlbau tobias@kohlbau.de

main.go Outdated
Comment on lines 157 to 162
} else if *ssh != "" {
handlePipedSSH()
} else {
handleSSH()
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use early return instead of complicated if else structure

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Windows 10 has the optional feature for an ssh client.
This package comes with a backed in ssh-agent which
utilizes windows named pipes instead of unix sockets.
This CL adds support to communicate which such ssh-agent.
This is mainly needed to enable ssh agents which do
not support the pageant established "protocol".

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
@tobiaskohlbau tobiaskohlbau force-pushed the feature/addWindowsSSH branch from becc694 to cfb1ff2 Compare May 18, 2020 13:18
@BlackReloaded BlackReloaded merged commit f7731f8 into BlackReloaded:master May 19, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants