Updated SSH (markdown)

master
Thomas Rebele 6 years ago
parent b5a7699a3b
commit b24cacb22b

@ -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).

Loading…
Cancel
Save