I'm trying to copy files using sftp pipeline and in the console, it's showing as a success but when I check my remote server the files are still not there
I'm using this configuration
```
- step:
name: "Deploy app to sftp"
script:
- pipe: atlassian/sftp-deploy:0.4.1
variables:
USER: "connectwithub"
SERVER: '35.236.94.149 '
REMOTE_PATH: '/var/www/html/ing/'
LOCAL_PATH: 'dist/ingreendients' # Optional.
DEBUG: 'true'
```
where files are present at dist/ingreendients and user has permission to that folder
SFTP Logs
```
<span>INFO: Enabling debug mode.</span><span>+ SFTP_DEBUG_ARGS=-v</span><span>+ setup_ssh_dir</span><span>+ INJECTED_SSH_CONFIG_DIR=/opt/atlassian/pipelines/agent/ssh</span><span>+ IDENTITY_FILE=/opt/atlassian/pipelines/agent/ssh/id_rsa_tmp</span><span>+ KNOWN_HOSTS_FILE=/opt/atlassian/pipelines/agent/ssh/known_hosts</span><span>+ mkdir -p /root/.ssh</span><span>+ touch /root/.ssh/authorized_keys</span><span>+ '[' '' '!=' '' ']'</span><span>+ '[' '!' -f /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp ']'</span><span>+ debug 'Using default ssh key'</span><span>+ [[ true == \t\r\u\e ]]</span><span>+ echo -e '\e[37mDEBUG: Using default ssh key\e[0m'</span><span>+ cp /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp /root/.ssh/pipelines_id</span><span>DEBUG: Using default ssh key</span><span>+ '[' '!' -f /opt/atlassian/pipelines/agent/ssh/known_hosts ']'</span><span>+ cat /opt/atlassian/pipelines/agent/ssh/known_hosts</span><span>+ '[' -f /root/.ssh/config ']'</span><span>+ echo 'IdentityFile ~/.ssh/pipelines_id'</span><span>+ chmod -R go-rwx /root/.ssh/</span><span>INFO: Starting SFTP deployment to 35.236.94.149 :/var/www/html/ing/...</span><span>DEBUG: Executing echo "mput dist/ingreendients" | sftp -rp -v <a href="mailto:connectwithub@35.236.94.149" target="_blank" rel="noopener nofollow noreferrer">connectwithub@35.236.94.149</a> :/var/www/html/ing/</span><span>+ run_pipe</span><span>+ info 'Starting SFTP deployment to 35.236.94.149 :/var/www/html/ing/...'</span><span>+ echo -e '\e[36mINFO: Starting SFTP deployment to 35.236.94.149 :/var/www/html/ing/...\e[0m'</span><span>+ debug Executing echo '"mput' 'dist/ingreendients"' '|' sftp -rp -v <a href="mailto:connectwithub@35.236.94.149" target="_blank" rel="noopener nofollow noreferrer">connectwithub@35.236.94.149</a> :/var/www/html/ing/</span><span>+ [[ true == \t\r\u\e ]]</span><span>+ echo -e '\e[37mDEBUG: Executing echo "mput dist/ingreendients" | sftp -rp -v <a href="mailto:connectwithub@35.236.94.149" target="_blank" rel="noopener nofollow noreferrer">connectwithub@35.236.94.149</a> :/var/www/html/ing/\e[0m'</span><span>+ set +e</span><span>+ echo 'mput dist/ingreendients'</span><span>+ sftp -b - -rp -v <a href="mailto:connectwithub@35.236.94.149" target="_blank" rel="noopener nofollow noreferrer">connectwithub@35.236.94.149</a> :/var/www/html/ing/</span><span>OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019</span><span>debug1: Reading configuration data /root/.ssh/config</span><span>debug1: Reading configuration data /etc/ssh/ssh_config</span><span>debug1: Connecting to 35.236.94.149 [35.236.94.149] port 22.</span><span>debug1: Connection established.</span><span>debug1: identity file /root/.ssh/pipelines_id type -1</span><span>debug1: identity file /root/.ssh/pipelines_id-cert type -1</span><span>debug1: Local version string SSH-2.0-OpenSSH_7.9</span><span>debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u6</span><span>debug1: match: OpenSSH_7.4p1 Debian-10+deb9u6 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002</span><span>debug1: Authenticating to 35.236.94.149:22 as 'connectwithub'</span><span>debug1: SSH2_MSG_KEXINIT sent</span><span>debug1: SSH2_MSG_KEXINIT received</span><span>debug1: kex: algorithm: curve25519-sha256</span><span>debug1: kex: host key algorithm: rsa-sha2-512</span><span>debug1: kex: server->client cipher: <a href="mailto:chacha20-poly1305@openssh.com" target="_blank" rel="noopener nofollow noreferrer">chacha20-poly1305@openssh.com</a> MAC: <implicit> compression: none</span><span>debug1: kex: client->server cipher: <a href="mailto:chacha20-poly1305@openssh.com" target="_blank" rel="noopener nofollow noreferrer">chacha20-poly1305@openssh.com</a> MAC: <implicit> compression: none</span><span>debug1: expecting SSH2_MSG_KEX_ECDH_REPLY</span><span>debug1: Server host key: ssh-rsa SHA256:8Up1yNw2btZ2KoXZVNcE0Qrf2w3g/2hWTsPn0BxPzrw</span><span>debug1: Host '35.236.94.149' is known and matches the RSA host key.</span><span>debug1: Found key in /root/.ssh/known_hosts:3</span><span>debug1: rekey after 134217728 blocks</span><span>debug1: SSH2_MSG_NEWKEYS sent</span><span>debug1: expecting SSH2_MSG_NEWKEYS</span><span>debug1: SSH2_MSG_NEWKEYS received</span><span>debug1: rekey after 134217728 blocks</span><span>debug1: Will attempt key: /root/.ssh/pipelines_id explicit</span><span>debug1: SSH2_MSG_EXT_INFO received</span><span>debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521></span><span>debug1: SSH2_MSG_SERVICE_ACCEPT received</span><span>debug1: Authentications that can continue: publickey,password</span><span>debug1: Next authentication method: publickey</span><span>debug1: Trying private key: /root/.ssh/pipelines_id</span><span>debug1: Authentication succeeded (publickey).</span><span>Authenticated to 35.236.94.149 ([35.236.94.149]:22).</span><span>debug1: channel 0: new [client-session]</span><span>debug1: Requesting <a href="mailto:no-more-sessions@openssh.com" target="_blank" rel="noopener nofollow noreferrer">no-more-sessions@openssh.com</a></span><span>debug1: Entering interactive session.</span><span>debug1: pledge: network</span><span>debug1: client_input_global_request: rtype <a href="mailto:hostkeys-00@openssh.com" target="_blank" rel="noopener nofollow noreferrer">hostkeys-00@openssh.com</a> want_reply 0</span><span>debug1: Sending subsystem: sftp</span><span>sftp> mput dist/ingreendients</span><span>Entering dist/ingreendients/</span><span>Entering dist/ingreendients/assets</span><span>Entering dist/ingreendients/assets/img</span><span>Entering dist/ingreendients/assets/img/star</span><span>Entering dist/ingreendients/assets/img/products</span><span>Entering dist/ingreendients/assets/img/products/shampoo</span><span>Entering dist/ingreendients/assets/img/products/conditioner</span><span>Entering dist/ingreendients/assets/img/cart</span><span>Entering dist/ingreendients/assets/img/homepage</span><span>Entering dist/ingreendients/assets/img/philosphy</span><span>Entering dist/ingreendients/assets/font</span><span>Entering dist/ingreendients/assets/font/gotham</span><span>debug1: client_input_channel_req: channel 0 rtype exit-status reply 0</span><span>debug1: channel 0: free: client-session, nchannels 1</span><span>debug1: fd 0 clearing O_NONBLOCK</span><span>debug1: fd 2 clearing O_NONBLOCK</span><span>Transferred: sent 9605652, received 40008 bytes, in 32.4 seconds</span><span>Bytes per second: sent 296314.6, received 1234.2</span><span>debug1: Exit status 0</span><span>+ STATUS=0</span><span>+ set -e</span><span>+ [[ 0 == \0 ]]</span><span>+ success 'Deployment finished.'</span><span>+ echo -e '\e[32m✔ Deployment finished.\e[0m'</span><span>+ exit 0</span><span>✔ Deployment finished.</span>
```