-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFTP Support #7127
Comments
@AHARIC any idea if this is prioritized at all and if it is something that will be delivered in the near future? |
@stefansedich - This feature request is not currently scheduled for a release though it is being prioritized internally and is on our internal issue board that we work from to get issues scheduled and resolved. |
Snippet from openssh 8.8 release notes
@AHARIC This might potentially break scp via teleport proxy servers in the future. Not having sftp and scp ,will be a problem. |
Thanks for bringing this to our attention @anurag-work. Do you guys currently use SFTP, SCP or |
We also need this feature to use teleport from jetbrains ideas. I've successfully configured my ssh config to use sftp command with below settings. ssh config
After this it was giving below error when I run sftp.
I also added this alias
After this I'm able to use sftp from command line like this
Finally I configured my idea. ssh worked successfully but sftp didn't work. I saw below error en teleport agent
If I understand correctly, idea are not using the alias I added. If I can make it send a subsystem command like I did for shell command, I guess It will work. But I couldn't figure out how to do it. I'd be appreciated for any help. |
@russjones I looked into this a while back, and one possibility might be to simply use the sftp-server binary from the openssh package. We'd just need some very basic plumbing in the teleport ssh_service to execute the sftp-server command when the sftp subsystem is requested. Additionally, we might be able to add support for custom subsystems on par with the |
The above quoted change is now part of OpenSSH 9.0/9.0p1 (2022-04-08):
As this version is already rolled out in ArchLinux this broke using ansible over teleport for me. |
I also had an issue with Teleport+Ansible since I upgraded OpenSSH to 9.0.
It force OpenSSH >=9.0 to use legacy scp module instead of sftp. But having proper support for sftp in Teleport would be great. |
@capnspacehook Go has a good SFTP library we can use: https://pkg.go.dev/github.com/pkg/sftp. |
It's in progress, please review the PR #13216 |
I reproduce fine after using the -O parameter. e.g: scp -O |
What
A few customers have expressed interest in native tsh SFTP support, similar to what we already to with SCP.
Why
Multiple customers have requested feature to match specific use-cases they have.
Workaround
Current workaround requires running OpenSSH alongiside Teleport and exporting and adding CAs to every single node manually, which can be burdensome and challenging, especially for customers who rotate CAs periodically for security reasons.
gz#3064
gz#4740
The text was updated successfully, but these errors were encountered: