Skip to content

[BUG] SFTP cannot handle username with @ symbol #257

@slapcat

Description

@slapcat

Description

My username is an email address with an @ symbol and nearly all functionality with SFTP breaks with that (adding SSH key, removing key, connecting with key). The same server works fine with a username without an @.

Steps to reproduce

This issue affects multiple components of termscp:

  1. Add SSH key with hostname server.com and user john.doe@example.com.
  2. Try to delete that SSH key. It will ask to confirm the deletion then doing nothing. Logs show it tries to remove example.com@john.doe. The UI shows the key listed as john.doe at example.com.
  3. Try to connect to server.com via SFTP with the SSH key. It will not find the SSH key and say it failed due to bad username/password.

Expected behaviour

The program can parse a username with an @ in it and not assume the first term after the @ is the host.

Environment

  • OS: Debian 12
  • Architecture: x86_64
  • Rust version: n/a
  • termscp version: 0.13.0
  • Protocol used: SFTP

Metadata

Metadata

Assignees

Labels

backlogImplementation/fix not planned yetbugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions