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 コマンド実行結果の差分を表示。
- Host: GitHub
- URL: https://github.com/ichikawayukko/sshdiff
- Owner: IchikawaYukko
- License: mit
- Created: 2020-05-12T10:05:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T09:18:11.000Z (over 5 years ago)
- Last Synced: 2023-03-11T10:16:32.653Z (almost 3 years ago)
- Topics: diff, go, golang, migration-tool, remote-execution, remote-shell, ssh
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```