Hi, I've recently created a pipeline using atlassian/scp-deploy:1.2.1.
This is what I've done so far :
My pipeline is triggered when merging with master branch;
ssh: connect to host 127.0.0.1 port 22: No route to host
lost connection
based on this link, adding EXTRA_ARGS: '-P 22222' should've solved it but its not in my case.
After searching for hours, found a way that works for me. We can pass extra arguments to the scp command to use port 8022, and enable extra debugging as below.
script: - pipe: atlassian/scp-deploy:1.2.1 variables: USER: 'ec2-user' SERVER: '127.0.0.1' REMOTE_PATH: '/var/www/build/' LOCAL_PATH: 'build/' DEBUG: 'true' EXTRA_ARGS: ["-P", "8022"]
Yes , i've tried using the capital letter P and non capital
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.