File: ssh-diff.1

package info (click to toggle)
ssh-tools 1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,328 kB
  • sloc: sh: 1,403; perl: 785; makefile: 5
file content (60 lines) | stat: -rw-r--r-- 1,518 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.TH SSH-DIFF "1" "March 2024" "SSH-TOOLS" "User Commands"
.SH NAME
ssh-diff \- diff a file over SSH
.SH SYNOPSIS
ssh\-diff [OPTIONS] FILE [user@]hostname[:FILE]
.SH DESCRIPTION
diff a file over SSH
.P
There is an extra roundtrip to the remote system
.br
to check for the existence of the file to be diffed.
.br
So if you are not using SSH Keys
.br
you may get prompted twice for a password.
.P
Use "CHECK_REMOTE_FILE_EXISTS=NO ssh\-diff" to disable that behavior
.SH DIFF_OPTIONS
All options your local diff command supports ( except '\-r' ).
.br
See 'man diff' and 'diff \fB\-\-help\fR' for more information.
.SH SSH_OPTIONS
.TP
\fB\-4\fR
Use IPv4 only
.TP
\fB\-6\fR
Use IPv6 only
.TP
\fB\-p\fR port
Port to connect to on the remote host.
.br
This can be specified on a per\-host basis in the configuration file.
.SH ENVIRONMENT
CHECK_REMOTE_FILE_EXISTS    NO|YES    remote file checking
.SH EXAMPLES
.TP
# Default
.TP
ssh\-diff \fI\,/etc/hosts\/\fP 192.168.1.10
.TP
ssh\-diff \fI\,/etc/hosts\/\fP root@192.168.1.10
.TP
ssh\-diff \fI\,/etc/hosts\/\fP root@192.168.1.10:/etc/hosts.old
.TP
# Side\-by\-Side
.TP
ssh\-diff \fB\-y\fR \fI\,/etc/hosts\/\fP 192.168.1.10
.TP
ssh\-diff \fB\-y\fR \fI\,/etc/hosts\/\fP root@192.168.1.10
.TP
ssh\-diff \fB\-y\fR \fI\,/etc/hosts\/\fP root@192.168.1.10:/etc/hosts.old
.TP
# Unified
.TP
ssh\-diff \fB\-u\fR \fI\,/etc/hosts\/\fP 192.168.1.10
.TP
ssh\-diff \fB\-u\fR \fI\,/etc/hosts\/\fP root@192.168.1.10
.TP
ssh\-diff \fB\-u\fR \fI\,/etc/hosts\/\fP root@192.168.1.10:/etc/hosts.old