diff --git a/src/server/command/index.ts b/src/server/command/index.ts index cc3e97d..41f7b71 100644 --- a/src/server/command/index.ts +++ b/src/server/command/index.ts @@ -31,14 +31,15 @@ export default ( args: !forcessh && localhost(host) ? loginOptions(command, remoteAddress) : sshOptions( - urlArgs(referer, { - host: address(referer, user, host), - port: `${port}`, - pass: pass || '', - command, - auth, - knownhosts, - }), + { ...urlArgs(referer, { + port: `${port}`, + pass: pass || '', + command, + auth, + knownhosts, + }), + host: address(referer, user, host) + }, key ), user: