Skip to content

Make 'tsh scp' error messages more useful#18657

Merged
capnspacehook merged 1 commit intomasterfrom
capnspacehook/tsh-scp-err-msgs
Apr 12, 2023
Merged

Make 'tsh scp' error messages more useful#18657
capnspacehook merged 1 commit intomasterfrom
capnspacehook/tsh-scp-err-msgs

Conversation

@capnspacehook
Copy link
Copy Markdown
Contributor

@capnspacehook capnspacehook commented Nov 21, 2022

When the ssh_file_copy role option being set to false prevented a user from copying files, this is the current output:

ERROR: ssh: subsystem request failed

ERROR: ssh: subsystem request failed

After this change, the output is:

ERROR: file copying via SCP or SFTP is not permitted

Fixes #15621.

@github-actions github-actions Bot requested review from lxea and r0mant November 21, 2022 19:26
@github-actions github-actions Bot added the tsh tsh - Teleport's command line tool for logging into nodes running Teleport. label Nov 21, 2022
@capnspacehook capnspacehook added backport/branch/v10 sftp Issues related to Teleport's SFTP implementation labels Nov 21, 2022
@corkrean corkrean added the c-tz Internal Customer Reference label Jan 12, 2023
Copy link
Copy Markdown
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@capnspacehook Is this change still applicable now that we're moving back to the upstream library?

I think it's a good UX improvement overall so if it's still valid let's bring this up-to-date and merge, otherwise just close the PR.

@capnspacehook
Copy link
Copy Markdown
Contributor Author

I think I can get this working after I merge in a few other SFTP PRs without upstream changes needed, I'll update this PR once #24260 is merged.

Comment thread lib/sshutils/sftp/sftp.go Outdated
Comment thread lib/sshutils/sftp/sftp.go Outdated
Copy link
Copy Markdown
Contributor

@avatus avatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After other feedback addressed

@capnspacehook capnspacehook force-pushed the capnspacehook/tsh-scp-err-msgs branch from 7ed9b70 to dee8213 Compare April 12, 2023 16:03
@capnspacehook capnspacehook enabled auto-merge April 12, 2023 16:12
@capnspacehook capnspacehook added this pull request to the merge queue Apr 12, 2023
Merged via the queue into master with commit 9ea710d Apr 12, 2023
@capnspacehook capnspacehook deleted the capnspacehook/tsh-scp-err-msgs branch April 12, 2023 16:36
This was referenced Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-tz Internal Customer Reference sftp Issues related to Teleport's SFTP implementation tsh tsh - Teleport's command line tool for logging into nodes running Teleport.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vague error message when SCP/SFTP connection is blocked

7 participants