How to connect to external server through SSH?
My config:
image: node:latest
pipelines:
default:
- parallel:
- step:
script:
- ssh ubuntu@<host-ip-here>
- step:
script: # Modify the commands below to build your repository.
- curl https://google.com # SUCCESS
- step:
script: # Modify the commands below to build your repository.
- curl 172.16.0.14 # ERROR
- step:
script: # Modify the commands below to build your repository.
- curl 172.17.0.1 # ERROR
- step:
script: # Modify the commands below to build your repository.
- curl <host-ip-here> # ERROR
- step:
script: # Modify the commands below to build your repository.
- curl localhost # ERROR
- step:
script: # Modify the commands below to build your repository.
- curl 127.0.0.1 # ERROR
- step:
script: # Modify the commands below to build your repository.
- curl host.docker.internal # ERROR
Bitbucket shows that SSH connection is successful, but all of the curl commands failed, excepts google.com
What I'm doing wrong?