+1 vote
by (210 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 \/..

by (210 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
by (134k 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.
by (134k 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!
by (134k 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!
by (210 points)
Thanks the new build fixed this.

1 Answer

0 votes
by (134k 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.

...