Allow SSH usernames containing spaces (e.g. Windows users like "tester tester")
Apra Fleet is an open-source MCP server
Brought to you by:
apralabs
Originally created by: kumaakh
SSH usernames that contain spaces (e.g. tester tester) are valid on Windows and work correctly with PuTTY, but register_member rejects the connection with:
❌ Failed to connect to <host>:<port> — All configured authentication methods failed
Member was NOT registered.
Fleet should accept and correctly handle SSH usernames that contain spaces, consistent with how PuTTY and standard SSH clients treat them on Windows.
register_member(
friendly_name="odm-ssdev",
host="utubovyu.users.openrport.io",
port=29637,
username="tester tester", # Windows user with a space
auth_type="password",
work_folder="~/ODM"
)
Result: All configured authentication methods failed — member not registered.
tester tester as the username and correct password.
Originally posted by: kumaakh
Fixed in main: PR [#177] (fix: SSH username with spaces + improved SSH error messages) confirmed that
agent.usernameis passed directly to thessh2ConnectConfig.usernamefield and is never shell-interpolated. The schema description forusernameinsrc/tools/register-member.tswas updated to explicitly note that spaces are allowed (e.g.tester testeron Windows). Unit tests for the SSH config path were added.Related
Tickets:
#177Ticket changed by: kumaakh