Skip to content

"Add New SSH Host" wrong result if user name has spaces #3560

@scaryrawr

Description

@scaryrawr
  • VSCode Version: 1.49.0-insider
  • OS Version: 5.7.14-200.fc32.x86_64 (Client), Windows 10 19041.450 (Host)

Steps to Reproduce:

  1. Install Windows 10
  2. Set up with local account, for name put full name, see that suggested user name has a space "First Last" (if not, add one).
  3. Follow instructions to set up openssh.
  4. From another computer, verify you can SSH to the Windows 10 machine ssh first\ last@win10machine
  5. Open VS Code
  6. Add a new SSH host
  7. Note that in the ~/.ssh/config VS Code didn't add quotes around the user name.
  8. Try to ssh in a terminal to the Windows 10 machine ssh first\ last@win10machine. -> THIS CAUSES ERROR config file is malformed.
  9. Update config to have quotes around the name
  10. Try to ssh in a terminal to the Windows 10 machine againe ssh first\ last@win10machine. -> Now works
  11. Launch VS Code
  12. Try to SSH connect to host
  13. Notice that the name isn't correct -> "last@win10machine"
  14. Connection fails.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugsshIssue in vscode-remote SSHverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions