I have added the private key to circle ci and added following in .circleci/config.yml
tar -zcvf test.tar.gz src/ scp -o "StrictHostKeyChecking=no" test.tar.gz firstname.lastname@example.org:/home/myproject/ ssh email@example.com tar -xvzf test.tar.gz
After giving permission to port 22 for ip address, I am able to execute these commands. But when disabling the port, the following error is occurs.
src/ src/demo.php ssh: connect to host 188.8.131.52 port 22: Connection timed out lost connection ssh: connect to host 184.108.40.206 port 22: Connection timed out Exited with code 255
How can I enable the port only for the circle ci?