-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Implement AgentClient::connect_uds on Windows #177
Comments
|
(if you're learning russh through examples, it's a better idea to start with |
FWIW, UNIX domain sockets have worked on windows for several years now, there's no reason not to support it here |
Yup but IIRC openssh agent uses a named pipe on windows instead
…________________________________
From: Wez Furlong ***@***.***>
Sent: Friday, September 8, 2023 3:34:43 PM
To: warp-tech/russh ***@***.***>
Cc: Eugene ***@***.***>; State change ***@***.***>
Subject: Re: [warp-tech/russh] Does this library work on Windows? (Issue #177)
so it doesn't work on Windows.
FWIW, UNIX domain sockets have worked on windows for several years now<https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/>, there's no reason not to support it here
—
Reply to this email directly, view it on GitHub<#177 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABHNRGKIGFMAIJ64BL2KLDXZMNHHANCNFSM6AAAAAA4PULI3M>.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
There are other ssh agents that run on windows that use unix domain sockets |
I was able to get this working on Windows with this small change to russh-keys: #[cfg(windows)]
impl AgentClient<tokio::net::windows::named_pipe::NamedPipeClient> {
pub async fn connect_windows() -> Result<Self, Error> {
let stream = tokio::net::windows::named_pipe::ClientOptions::new()
.open(r"\\.\pipe\openssh-ssh-agent")?;
Ok(AgentClient {
stream,
buf: CryptoVec::new(),
})
}
} Then Except it seems to not be returning my ECDSA keys:
|
@eminence russh doesn't have support for ECDSA keys yet - only RSA and Ed25519 |
I tried to run basic examples but hit a problem with
where connect_env returns only error on non-unix platform. Does this library supposed to work under platform otherthan linux?
The text was updated successfully, but these errors were encountered: