mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 09:44:51 +00:00
e0360ac97a
When this command is executed: ``` $ scp host:path/with/wildcards/* . ``` Teleport would launch "SSH exec" request on the sever side, which in turn would execute the following: ``` /bin/bash -c /usr/bin/teleport scp --remote-addr=127.0.0.1:44226 --local-addr=127.0.0.1:3022 -r -f path/with/wildcards/* ``` The problem is that bash will attempt to "expand" the wildcard, sending a bunch of files as an input into -f, but `teleport scp` needs to see the _exact_ string as passed via scp client. The proposed solution is to detect shell wildcard characters and wrap them in single quotes preventing them from being expanded. Another potential solution is to NOT use shell to execute SCP commands. |
||
---|---|---|
.. | ||
auth | ||
backend | ||
client | ||
config | ||
defaults | ||
events | ||
fixtures | ||
httplib | ||
limiter | ||
reversetunnel | ||
service | ||
services | ||
session | ||
srv | ||
sshutils | ||
state | ||
teleagent | ||
utils | ||
web |