A multi-host SSH client written in Rust.
russh "command1" "command2" "command3"
-c
- Pass a relative path to a russh.toml
value into the program.
russh "command1" "command2" "command3" -c </path/to/russh.toml>
In flake.nix
inputs add:
inputs = {
russh.url = "github:erictossell/russh";
};
In flake.nix
modules add:
modules = [
({ pkgs, russh, ... }:
{
environment.systemPackages = with pkgs; [
russh.packages.${system}.default
];
})
];
or
Imported as a module.nix
:
{ pkgs, russh, ... }:
{
environment.systemPackages = with pkgs; [
russh.packages.${system}.default
];
}
The first time running the application will ask if you would like to generate a .config/russh/russh.toml
if one does not exist.
russh
will look for a russh.toml
in the cwd
and if none exists it will default to the .config/russh
value.
servers = ["test.server.com"]
[ssh_options]
"test.server.com" = "-p 22"
[users]
"test.server.com" = "user"