-
Notifications
You must be signed in to change notification settings - Fork 0
Description
So, OpenSSH supports scp on the sink by executing something like this:
/path/to/shell -c <scp command>
I think I can even update ContainerShell to leverage that, and run scp inside the container. This would be really nice because the location of /srdata over SSH will be the same as SCP.
While I was digging around, I think I could even support WinSCP using SCP. WinSCP works just like scp when doing sftp, which is the default protocol (it just evokes the shell with the arg for sftp-server). However, to do SCP, WinSCP has this wonky protocol where it sends stuff to stdin and waits. The stuff looks like basic shell commands, so I can probably just read stdin, execute those commands inside the container, then barf the output back to WinSCP over stdout. If not, I could at least detect something is wrong send a message to the user, then tear everything down.