An open API service indexing awesome lists of open source software.

https://github.com/ichikawayukko/sshdiff

Show diffs of remote command result. ssh コマンド実行結果の差分を表示。
https://github.com/ichikawayukko/sshdiff

diff go golang migration-tool remote-execution remote-shell ssh

Last synced: 4 months ago
JSON representation

Show diffs of remote command result. ssh コマンド実行結果の差分を表示。

Awesome Lists containing this project

README

          

# sshdiff

[日本語](READMEja.md)

Show differece of remote command output.

May be useful for server migration.

# Install
1. Download release executable
1. Place executable on /usr/local/bin or somewhere
1. Set permission to `rwxr-xr-x` (755)

# Usage
## Simple usage
```
$ sshdiff server1 server2 ls
```

run `ls` in server1 and server2 by ssh, then show difference of `ls` output.

## Specify ssh username
```
$ sshdiff yuriko@server1 yuriko@server2 ls
```

## Multiple command args
```
$ sshdiff yuriko@server1 yuriko@server2 'rpm -ql|sort'
````

If command has args, must quote it.

If ports(22) or keys(id_rsa, id_ecdsa, etc..) are different from default, please specify on your ~/.ssh/config like below

```
Host server1
HostName server1.example.com
Port 8022
IdentityFile ~/.ssh/id_ecdsa_server1

Host server2
HostName server2.example.com
Port 1022
IdentityFile ~/.ssh/id_ecdsa_server2
```