diff --git a/lib/command.mjs b/lib/command.mjs index 378cf64..68ca2bd 100644 --- a/lib/command.mjs +++ b/lib/command.mjs @@ -16,7 +16,11 @@ export default ( '-o', `PreferredAuthentications=${auth}`, ], - user: localhost(host) || user !== '' || user.includes('@'), + user: + localhost(host) || + user !== '' || + user.includes('@') || + address(headers, user, host).includes('@'), }); function address(headers, user, host) {