SCP File Upload is creating extra directory

+1 vote
asked Jun 17 by adrianwatkins (190 points)

Im using the Filesever component as and SSH/SCP server and am uploding configuraiton from Cisco infrastructure over SCP.

When we use a file path and name for SCP similar to the below:

/switch/hostname-datestamp.cfg

this works with other SCP servers creating the path as expected but the with teh Rebex contols im getting an extra directory on the server the same name as the filepath then the file in that directory.

the filename is quote long and contains characters . - but no special characters like \/..

commented Jun 18 by adrianwatkins (190 points)
Just to add having scoped this further. If I SCP to the Fileserver a path containing a file it works fine, if I incldue a directory or directories then it adds a directory to the end fo the path.

Example:
2021-06-17 17:45:43.195 DEBUG ShellModule(3)[18] SSH: Getting item info on '/': success.
2021-06-17 17:45:43.195 DEBUG ShellModule(3)[18] SSH: Starting 'exec' subsystem for: scp -v -t WR/backupfile.txt.
2021-06-17 17:45:43.198 DEBUG ShellModule(3)[21] SSH: Executing command: scp -v -t WR/backupfile.txt
2021-06-17 17:45:43.201 DEBUG ShellModule(3)[22] SSH: Getting item info on '/WR/backupfile.txt': not found.
2021-06-17 17:45:43.202 DEBUG ShellModule(3)[22] SSH: Creating directory '/WR/backupfile.txt': success.
2021-06-17 17:45:43.422 DEBUG ShellModule(3)[22] SSH: Getting item info on '/WR/backupfile.txt/backupfile.txt': not found.
2021-06-17 17:45:43.422 DEBUG ShellModule(3)[22] SSH: Opening file '/WR/backupfile.txt/backupfile.txt' (Create, Write): success.
2021-06-17 17:45:43.687 DEBUG ShellModule(3)[22] SSH: Closing file '/WR/backupfile.txt/backupfile.txt': success
commented Jun 18 by Lukas Pokorny (124,570 points)
Thanks for the log, we will look into this! It's possibly an interoperability issue with a particular scp client.
Could you please post the scp command you run at the client?
And ideally the output of "ssh -V" as well.
commented Jun 18 by Lukas Pokorny (124,570 points)
Update: We were able to reproduce this problem, so we don't need any additional information. Thanks for bringing the issue to our attention!
commented Jun 18 by Lukas Pokorny (124,570 points)
I just sent a link to fixed build of Rebex Total Pack to your e-mail address. Please give it a try and let us know whether it resolves the issue!
commented Jun 21 by adrianwatkins (190 points)
Thanks the new build fixed this.

1 Answer

0 votes
answered Jun 21 by Lukas Pokorny (124,570 points)

It turned out there was a compatibility issue in Rebex File Server's SCP implementation. This has been fixed in Rebex File Server R5.3.

...