0

Host machine: Mac OS, Big Sur. Installed Rancher Desktop v1.6.2 and set a pipeline to ssh to host machine and run a script. pipeline code:

jobs:
  - name: sanity-run-job
    serial: true
    plan:
      - get: sanity_run
        trigger: true
      - task: sanity-run
        timeout: 120m
        config:
          platform: linux
          image_resource:
            type: registry-image
            source:
              repository: <Image_name>
              tag: latest
              username: <user_name>
              password:<password>
          run:
            path: sh
            args:
             - -exc
             - |
                sshpass -p 'xxxx' ssh -oStrictHostKeyChecking=no -oCheckHostIP=no <username>@machine_name.local "cd ~/Documents/xxx;"

I am only having issue with ssh from container to host, getting below error message:

Failed to get a pseduo-terminal: no such file or directory
Vipul
  • 545
  • 1
  • 8
  • 30

0 Answers0