wish icon indicating copy to clipboard operation
wish copied to clipboard

scp windows

Open dezren39 opened this issue 1 year ago • 1 comments

so scp with windows for server and client works, but there are some specific interesting things that may need changes to be 'seamless'.

  • i get protocol error: expected control record on download, this sounds like it is server side somewhere
    • for my simple test cases so far, the download still succeeds.
    • upload didn't show this error and it uploaded fine. i had a slight delay in seeing the upload appear in the mounted folder but that might have been a graphical ui bug on my machine
  • for any conn to work, i need to specify -O on the client (https://github.com/PowerShell/Win32-OpenSSH/issues/1945#issuecomment-1151216814) which is (https://man7.org/linux/man-pages/man1/scp.1.html)
Use the legacy SCP protocol for file transfers instead of
the SFTP protocol.  Forcing the use of the SCP protocol
may be necessary for servers that do not implement SFTP,
for backwards-compatibility for particular filename
wildcard patterns and for expanding paths with a ‘~’
prefix for older SFTP servers.
  • edit: found #40 linking
  • it sounds like legacy -O mode isn't a preferred default (https://bugreports.qt.io/browse/QTQAINFRA-4974?focusedCommentId=660149&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel) but may need server side changes to allow the new protocol? (https://documentation.help/PuTTY/faq-pscp-protocol.html)
    • it may help to allow subsytem powershell for scp on the server config? (https://github.com/PowerShell/Win32-OpenSSH/issues/1269)
    • is the scp middleware for all scp clients, or for scp protocol? should i be asking about an sftp middleware instead? or should this scp middleware be able to handle that?

system info

 scoop which scp 
C:\WINDOWS\System32\OpenSSH\scp.exe
 scoop which ssh 
C:\WINDOWS\System32\OpenSSH\ssh.exe
 ssh -V
OpenSSH_for_Windows_9.2p1, LibreSSL 3.6.2
 ((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)
9.2.3.1
 ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)
Windows 10 Pro

dezren39 avatar Jan 02 '24 19:01 dezren39

SFTP was added to the SCP example, and it seems to work fine on my windows vm... could you try again?

thanks!

caarlos0 avatar Jan 22 '24 14:01 caarlos0