openssh icon indicating copy to clipboard operation
openssh copied to clipboard

Scriptable SSH through OpenSSH in Rust

Results 18 openssh issues
Sort by recently updated
recently updated
newest added

How do I go about this the right way? I would like to see an example such that it reads stdio and writes the data to a file in real...

Using version 0.8.1, creating a connection does not seem to work when on Winodws 11. When executing the following line of code: `let session = Session::connect(format!("root@{}", SERVER_IP.to_string()), KnownHosts::Accept).await?;` I either...

enhancement

26 of the 27 test pass, excluding `connect_timeout`. instead of resulting in a timeout, `ssh` seems to fail with: "connect to host 192.0.0.8 port 22: Network is unreachable" when changing...

bug

Using Windows 11, RC version 0.9.0-rc.1 fail to compile, as tokio-pipe seems to fail to compile correctly on Windows. See: https://github.com/yskszk63/tokio-pipe/issues/23

## Description Allow to set env during command sending process ## Current behavior Error, as specified in the [docs](https://docs.rs/openssh/latest/openssh/enum.Error.html#variant.CommandHasEnv) ## OP help Unfortunately, not possible as of now

I'm executing remote commands through a Session using `Session::command()` But I don't find a way to set the current directory for a given command. Even the `cd` command does not...

Hey, Every time I start a ssh connection it creates a .ssh-connectionXXXXX folder (where X are replaced by random chars). How could I disable that feature, or make sure that...

The `Session::request_port_forwarding` [documentation states the following](https://docs.rs/openssh/latest/openssh/struct.Session.html#method.request_port_forward): > Currently, there is no way of stopping a port forwarding due to the fact that openssh multiplex server/master does not support this. In...

This features exists in bossy::Command here: https://docs.rs/bossy/latest/bossy/struct.Command.html#method.with_args It is quite useful, allowing you to write this: ```rust let kill_cmd = session.command("/root/.cargo/bin/nu").withargs([ "-c", r##"ps | filter {|ps| $ps.name == "surreal"} |...