Specify SSH port number:

```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -12,7 +12,7 @@ jobs:
       - run:
           name: Start ssh-keyscan
           command: |
-            ssh-keyscan ${HOST_NAME} >> ~/.ssh/known_hosts
+            ssh-keyscan -p ${SSHPORT} ${HOST_NAME} >> ~/.ssh/known_hosts

       - run:
           name: Change Amazon Links
```
This commit is contained in:
Kazuhiro MUSASHI 2019-05-04 21:01:37 +08:00
parent 46353b48e8
commit 51ea68b3e3
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ jobs:
- run: - run:
name: Start ssh-keyscan name: Start ssh-keyscan
command: | command: |
ssh-keyscan ${HOST_NAME} >> ~/.ssh/known_hosts ssh-keyscan -p ${SSHPORT} ${HOST_NAME} >> ~/.ssh/known_hosts
- run: - run:
name: Change Amazon Links name: Change Amazon Links