1. ilknur Aydin

ilknur Aydin

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Set link characteristics #3307
    ilknur Aydin
    Participant

      I have this command

      %%bash -s “$FABRIC_SLICE_PRIVATE_KEY_FILE” “$FABRIC_BASTION_USERNAME” “$FABRIC_BASTION_HOST” “$ROUTER1_USER” “$ROUTER1_IP” “$router1Cmd”
      ssh -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $1 -J $2@$3 $4@$5 << EOF
      ##############################################

      cd
      echo “hello” > hello.txt
      ##############################################
      exit
      EOF

       

       

      getting the following error, any comments on how to fix the issue or what the issue is?

      Host key verification failed.

      —————————————————————————
      CalledProcessError Traceback (most recent call last)
      /tmp/ipykernel_55/1667276590.py in <module>
      —-> 1 get_ipython().run_cell_magic(‘bash’, ‘-s “$FABRIC_SLICE_PRIVATE_KEY_FILE” “$FABRIC_BASTION_USERNAME” “$FABRIC_BASTION_HOST” “$ROUTER1_USER” “$ROUTER1_IP” “$router1Cmd”‘, ‘ssh -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $1 -J $2@$3 $4@$5 << EOF\n##############################################\n\ncd\necho “hello” > hello.txt\n##############################################\nexit\nEOF\n’)

      /opt/conda/lib/python3.9/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
      2404 with self.builtin_trap:
      2405 args = (magic_arg_s, cell)
      -> 2406 result = fn(*args, **kwargs)
      2407 return result
      2408

      /opt/conda/lib/python3.9/site-packages/IPython/core/magics/script.py in named_script_magic(line, cell)
      140 else:
      141 line = script
      –> 142 return self.shebang(line, cell)
      143
      144 # write a basic docstring:

      <decorator-gen-103> in shebang(self, line, cell)

      /opt/conda/lib/python3.9/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
      185 # but it’s overkill for just that one bit of state.
      186 def magic_deco(arg):
      –> 187 call = lambda f, *a, **k: f(*a, **k)
      188
      189 if callable(arg):

      /opt/conda/lib/python3.9/site-packages/IPython/core/magics/script.py in shebang(self, line, cell)
      243 sys.stderr.flush()
      244 if args.raise_error and p.returncode!=0:
      –> 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
      246
      247 def _run_script(self, p, cell, to_close):

      CalledProcessError: Command ‘b’ssh -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $1 -J $2@$3 $4@$5 << EOF\n##############################################\n\ncd\necho “hello” > hello.txt\n##############################################\nexit\nEOF\n” returned non-zero exit status 255.

      in reply to: Set link characteristics #3306
      ilknur Aydin
      Participant

        how did you fix the issue?

      Viewing 2 posts - 1 through 2 (of 2 total)