.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. .TH SSH-DIFF "1" "February 2022" "SSH-TOOLS" "User Commands" .SH NAME ssh-diff \- diff a file over ssh .SH DESCRIPTION .IP Usage: ssh\-diff [OPTIONS] FILE [user@]hostname[:FILE] .IP There is an extra roundtrip to the remote system to check for the existence of the file to be diffed. So if you are not using SSH Keys you may get prompted twice for a password. .IP Use "CHECK_REMOTE_FILE_EXISTS=NO ssh\-diff" to disable that behavior .IP Diff Options: .IP All options your local diff command supports ( except '\-r' ). See 'man diff' and 'diff \fB\-\-help\fR' for more information. .IP 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. This can be specified on a per\-host basis in the configuration file. .IP Examples: .IP Default: .IP ssh\-diff \fI\,/etc/hosts\/\fP 192.168.1.10 .IP ssh\-diff \fI\,/etc/hosts\/\fP root@192.168.1.10 .IP ssh\-diff \fI\,/etc/hosts\/\fP root@192.168.1.10:/etc/hosts.old .IP Side\-by\-Side: .IP ssh\-diff \fB\-y\fR \fI\,/etc/hosts\/\fP 192.168.1.10 .IP ssh\-diff \fB\-y\fR \fI\,/etc/hosts\/\fP root@192.168.1.10 .IP ssh\-diff \fB\-y\fR \fI\,/etc/hosts\/\fP root@192.168.1.10:/etc/hosts.old .IP Unified: .IP ssh\-diff \fB\-u\fR \fI\,/etc/hosts\/\fP 192.168.1.10 .IP ssh\-diff \fB\-u\fR \fI\,/etc/hosts\/\fP root@192.168.1.10 .IP ssh\-diff \fB\-u\fR \fI\,/etc/hosts\/\fP root@192.168.1.10:/etc/hosts.old