From b24cacb22be1a3460da2ee94cfb42abd3ed0ab1f Mon Sep 17 00:00:00 2001 From: Thomas Rebele Date: Tue, 4 Sep 2018 11:02:11 +0200 Subject: [PATCH] Updated SSH (markdown) --- SSH.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SSH.md b/SSH.md index c4dc48b..ac21f64 100644 --- a/SSH.md +++ b/SSH.md @@ -1,5 +1,6 @@ # Troubleshooting + ## ssh fails with error message `packet_write_wait: Connection to ... port 2222: Broken pipe Try disabling TTY with option -T and disabling X11 forwarding with -x: ``` @@ -8,13 +9,15 @@ ssh -T -x -v -p 2222 user@ip ## scp fails with error message `scp: not found` and `lost connection` +The scp command is not installed / not supported on your device. -The scp command is not installed / not supported on your device. You can use the following workaround to transfer a file with ssh: - +### Workaround 1 +You can use the following workaround to transfer a file with ssh: ``` cat src_file | ssh -T -x -p 2222 user@ip 'cat > dst_file' ``` The parent directory of `dst_file` must exist. - +### Workaround 2 +For more comfort, you can use [lsyncd](https://github.com/axkibe/lsyncd) to send modified files automatically to the target. You can find an example configuration file for this purpose at [lsyncd-workaround](https://github.com/thomasrebele/lsyncd-workaround).