Crates.io | sshrpc |
lib.rs | sshrpc |
version | 0.1.0 |
source | src |
created_at | 2024-06-09 11:06:49.961043 |
updated_at | 2024-06-09 11:06:49.961043 |
description | RPC through ssh port forwarding |
homepage | https://github.com/yamaura/sshrpc |
repository | https://github.com/yamaura/sshrpc |
max_upload_size | |
id | 1266310 |
size | 75,839 |
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.
tarpc
for RPC implementation, which allows for calling remote functions as if they were local.tokio_serde
with bincode
for efficient data serialization and transmission over the network.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.
You can see examples