sshrpc

Crates.iosshrpc
lib.rssshrpc
version0.1.0
sourcesrc
created_at2024-06-09 11:06:49.961043
updated_at2024-06-09 11:06:49.961043
descriptionRPC through ssh port forwarding
homepagehttps://github.com/yamaura/sshrpc
repositoryhttps://github.com/yamaura/sshrpc
max_upload_size
id1266310
size75,839
Yuki Yamaura (yamaura)

documentation

README

sshrpc

This crate simplifies the process of automating tasks on remote machines using SSH (Secure Shell). Normally, automating over SSH involves manually handling commands and capturing their standard output and standard error, which can be cumbersome. This crate provides a more streamlined approach by enabling remote procedure calls (RPC) through an SSH port forwarding setup.

Features

  • Remote Procedure Calls: Utilize tarpc for RPC implementation, which allows for calling remote functions as if they were local.
  • SSH Port Forwarding: Automatically set up SSH port forwarding to communicate with the remote RPC server, simplifying the connection setup.
  • Serialization: Implements tokio_serde with bincode for efficient data serialization and transmission over the network.

How It Works

The crate enables you to deploy a local RPC server program to a remote machine via SSH. Once the server is deployed, SSH port forwarding is used to establish a communication channel between the local machine and the remote server. This setup allows for easy execution of automation scripts that interact seamlessly with the remote environment.

Example

You can see examples

Commit count: 1

cargo fmt