New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't start up the remote connection #393
Comments
Installing Windows' own SSH client seems to be the way forward, but without guarantee. Let us know if this fixes your issue and please close the issue if so. |
Thanks for getting back to me. I do have Windows' SSH client installed and can open an SSH connection using the 'ssh' command without error. |
I just tried myself and it works flawlessly:
What does |
|
That's strange because my output with |
Are you in a command windows (cmd.exe) or in a PowerShell window? |
When I run the full rdiff command with I do not have an I have been using cmd but just tried it in PowerShell and had the same result. |
I'm a bit out of ideas what the issue might be but it doesn't seem to be a code issue, rather a configuration issue. Let's try 2 more things:
|
I tried the first three commands setting the remote schema and got the same "Couldn't start remote connection error". The python script gave me the same result ( I appreciate all your suggestions. I agree it is likely a configuration issue on my end. Time to start reinstalling :) |
Perhaps a last thought from my side: I remember vaguely that downloaded files are flagged as such by Windows which brings restrictions with it (you can't start them without question back), perhaps Windows doesn't allow them to access system processes, and SSH is considered as such, because placed under \Windows\System32 ? See e.g. https://www.howtogeek.com/70012/what-causes-the-file-downloaded-from-the-internet-warning-and-how-can-i-easily-remove-it/ |
Were you able to resolve this? I'm having the same issue |
Unfortunately not. I ended up using a local backup for that project. I hope you have more success! |
See @ericzolf comment below... |
I had forgotten about this issue (but it had been closed), but I think that https://github.com/rdiff-backup/rdiff-backup/blob/master/docs/Windows-README.md#using-microsofts-openssh-client-on-windows-10 is the solution to the described problem. |
... ... well thanks I read that a few times and completely missed it. There goes a few hours of my life. This error still shows up at the top of the list for google so thanks for linking it! Will make the next unlucky souls day better! |
If anyone comes across this later via websearch, it's now at https://github.com/rdiff-backup/rdiff-backup/blob/master/docs/Windows-README.adoc#42-using-microsofts-openssh-client-on-windows-10 And it seems to work fine for me, so far at least. |
Thanks. Yes, we translated all markdown to asciidoc. This said, https://github.com/rdiff-backup/rdiff-backup/blob/master/docs/Windows-README.adoc#using-microsofts-openssh-client-on-windows-10 works as well ( the 42-thingy is probably specific to GitHub, at least it made me wonder). |
I have rdiff-backup version 2.0.0 installed on Windows 10 and on a Raspberry Pi. SSH works fine between both devices and I can backup the Windows device to the Raspberry Pi if I initiate the backup from the Pi but not if I try to initiate it from the Windows device. Rdiff-backup is installed on the PATH of the Pi. Any ideas as to what might cause this? I have attached the error using -v9 below.
2020-06-05 22:31:49.601230 -0600 Using rdiff-backup version 2.0.0
2020-06-05 22:31:49.616947 -0600 with cpython C:\Users\benng\rdiff-backup-2.0.0.win32exe\rdiff-backup-2.0.0\rdiff-backup.exe version 3.7.5
2020-06-05 22:31:49.620854 -0600 on Windows-10-10.0.17763, fs encoding utf-8
2020-06-05 22:31:49.627364 -0600 Executing ssh -C raspberrypi.local rdiff-backup --server
2020-06-05 22:31:49.634992 -0600 Client sending (0): ConnectionRequest: Globals.get with 1 arguments
2020-06-05 22:31:49.636988 -0600 Client sending (0): version
'ssh' is not recognized as an internal or external command,
operable program or batch file.
2020-06-05 22:31:49.666346 -0600 Fatal Error: Truncated header string (problem probably originated remotely)
Couldn't start up the remote connection by executing
Remember that, under the default settings, rdiff-backup must be
installed in the PATH on the remote system. See the man page for more
information on this. This message may also be displayed if the remote
version of rdiff-backup is quite different from the local version (2.0.0).
The text was updated successfully, but these errors were encountered: