Mihir Kumar
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/server/command.ts
|
|
@ -1,5 +1,7 @@ |
|
|
|
import * as url from 'url'; |
|
|
|
import { Socket } from 'socket.io'; |
|
|
|
|
|
|
|
import logger from './logger'; |
|
|
|
import { SSH } from './interfaces'; |
|
|
|
|
|
|
|
const localhost = (host: string): boolean => |
|
|
@ -69,7 +71,7 @@ function sshOptions( |
|
|
|
'-o', |
|
|
|
`PreferredAuthentications=${auth}`, |
|
|
|
]; |
|
|
|
console.log(`Authentication Type: ${auth}`) |
|
|
|
logger.info(`Authentication Type: ${auth}`); |
|
|
|
if (key) { |
|
|
|
return sshRemoteOptsBase.concat(['-i', key, cmd]); |
|
|
|
} |
|
|
|