Skip to content

Commit

Permalink
Removed strict host checking, disabled ssh warnings (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblane-digicatapult committed Aug 11, 2022
1 parent 411ad59 commit 7951b3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@digicatapult/morello-api",
"version": "0.3.2",
"version": "0.3.3",
"description": "An interface for executing binaries on it's self and morello host.",
"main": "src/index.ts",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/scenario/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export class scenario extends Controller implements IScenario {


execute(bin: string): Promise<HostResponse> {
const scp = `scp -P ${this.port} bin/${bin} ${this.address}:/tmp`
const ssh = `ssh -p ${this.port} ${this.address} -tt 'chmod +x /tmp/${bin}; /tmp/${bin} with args' 2>&1`
const rm = `ssh -p ${this.port} ${this.address} rm -v /tmp/${bin} &> /dev/null`
const scp = `scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q -P ${this.port} bin/${bin} ${this.address}:/tmp`
const ssh = `ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q -p ${this.port} ${this.address} -tt 'chmod +x /tmp/${bin}; /tmp/${bin} with args' 2>&1`
const rm = `ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q -p ${this.port} ${this.address} rm -v /tmp/${bin} &> /dev/null`
this.log.debug({ msg: `executing ${bin} on ${this.address} host`, scp, ssh })

return new Promise((resolve) => {
Expand Down

0 comments on commit 7951b3f

Please sign in to comment.