mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 06:08:23 +08:00
* switch underlying protocol used for 'tsh scp' to SFTP * address TODO * appease linter * add method to make it easier for other callers to transfer files * add tests * print transfer progress with progress bar by default Also allow a SIGINT to gracefully stop the SFTP connection. This is necessary because the progress bar will ignore signals and prevent the process from exiting. * address SFTP fork issues * make tests less flakey * fix specifying dir for dst not copying files to correct paths * make tests less flakey (again) * don't check file access times, often differs when run in CI * few small fixes from review, simplify Create method now that HTTP FS isn't needed * create dst files and dirs with src mode * improved error messages when doing file operations * expand home dirs in remote paths * addressed more feedback * add license to get_home_dir.go * address minor feedback of tests, add home dir expansion test * update sftp fork to point to latest commit on master branch * addressed feedback * don't cache home dir lookups, only one remote path can ever be used