-
Notifications
You must be signed in to change notification settings - Fork 601
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
SCP upload to Windows 11 Open SSH fails with no such file or directory error #929
Comments
Here is the relevant snippet from the OpenSSH server log:
|
It appears that the escaping/path conversion is different between download and upload. Notice how the Windows path has Upload snippet from SSH server log:
Download snippet from SSH server log:
I'm not sure where exactly the code is that is converting the upload path. I tried changing it in a couple of different places and rebuilding the JAR as a test but it seems to have no effect. |
@hierynomus Any thoughts on this? |
I am also facing the same issue. Is there any solution for the same ? |
Nothing so far. I have just documented this as a limitation for now. It seems like none of the SSHJ committers are interested. |
I'm facing the same issue. Any news on this topic? |
Did you found any workaround? Thank you |
We are using SSHJ to add remoting capabilities to our app. We are currently testing cross-platform capabilities where the client is running on Linux connecting to a Windows 11 Enterprise server using the OpenSSH server provided by the Windows distribution. SSH is working fine. SCP download is working fine. SCP upload is failing with:
The odd thing is that scp from the command-line works fine.
My code is just a little sample that I created trying to debug this problem. As you can see, it isn't doing anything fancy and is allowing SSHJ to get the default username and SSH private key (from
~/.ssh/id_rsa
).In the output from this program, I see the following before the stack trace:
The text was updated successfully, but these errors were encountered: