openziti-test-kitchen / zssh

Ziti SSH
Apache License 2.0
36 stars 6 forks source link

Work around all use cases for scp #4

Closed jkochanik closed 3 years ago

jkochanik commented 3 years ago
  1. multiple files
  2. have Send & Receive
  3. recursive dir copying
  4. dirs within dirs
jkochanik commented 3 years ago

needs to support just the 'basics'... `zscp remoteuser>@<targetIdentity: and

zscp remoteuser>@<targetIdentity:```

so that means all these should work: zscp cd@ClintLinuxVM:/etc/hosts /remote/path/here/to/put/the/file zscp cd@ClintLinuxVM:/tmp/.txt /remote/path/here/to/put/the/files zscp /local/path/to/files/to/send cd@ClintLinuxVM:/remote/destination/path zscp /local/globbed/path/to/files.txt cd@ClintLinuxVM:/remote/destination/globbedfiles

jkochanik commented 3 years ago

paths should be able to be relative: zscp ./fileInThisFolder cd@ClintLinuxVM:. zscp ./fileInThisFolder cd@ClintLinuxVM:./relative/to/home/of/user-cd 3:28 and no leading path delimiter is needed either i do this all the time myself: zscp myFile.txt ClintLinuxVM:.