-
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
scp returns 1 when using with OpenSSH #23625
Labels
bug
OpenSSH
For customers using Teleport and OpenSSH
scp
server-access
sftp
Issues related to Teleport's SFTP implementation
Comments
jakule
added a commit
that referenced
this issue
Mar 26, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
jakule
added a commit
that referenced
this issue
Mar 28, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
github-actions bot
pushed a commit
that referenced
this issue
Mar 28, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
github-actions bot
pushed a commit
that referenced
this issue
Mar 28, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
github-actions bot
pushed a commit
that referenced
this issue
Mar 28, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
This was referenced Mar 28, 2023
jakule
added a commit
that referenced
this issue
Mar 31, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
jakule
added a commit
that referenced
this issue
Mar 31, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
jakule
added a commit
that referenced
this issue
Mar 31, 2023
Go SFTP doesn't return error code as mentioned here pkg/sftp#321. As a consequence of that `scp` returns error code 1 if no code wa returned for the server, which makes it look like something went wrong even on successful transfer. This PR adds the return code to the SFTP subsystem, which fixes the described behavior. Closes #20863 Note: The error code is not returned when using OpenSSH server and client. This PR only fixes the behavior when Teleport is used as a server. Here is an issue tro trace it #23625
Fixed by #23626 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
OpenSSH
For customers using Teleport and OpenSSH
scp
server-access
sftp
Issues related to Teleport's SFTP implementation
Expected behavior:
scp should return 0 when a file transfer succeeds when OpenSSH server is used.
Current behavior:
As described here #20863, file transfer returns 1 even when on success.
PR #23626 fixes the case when Teleport is used as the server.
Bug details:
Run sshd server and Teleport proxy
run
scp
command to copy a fileCheck the error code
The text was updated successfully, but these errors were encountered: