la-haute-societe / ssh-deploy-release

Deploy releases over SSH with rsync, archive ZIP / TAR, symlinks, SCP ...
https://www.npmjs.com/package/ssh-deploy-release
MIT License
36 stars 10 forks source link

Synchronize mode doesn't honor the `port` setting #9

Closed nstCactus closed 5 years ago

nstCactus commented 6 years ago
preproduction: {
    localPath:    'www',
    host:         'xxx.xxx.xxx.xxx',
    port:         2201,
    username:     'root',
    password:     'xxxxxxxx',
    deployPath:   '/srv/www/preprod',
},

Trying to deploy using this example config fails with the following error message:

Fatal error : Error: Command failed: rsync --rsh='sshpass -p "xxxxxxxx" ssh -l root -o StrictHostKeyChecking=no'  -a --stats --delete www/ root@xxx.xxx.xxx.xxx:/srv/www/preprod/synchronized
ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
nstCactus commented 5 years ago

Fixed a while ago in 89a8f60118bbefbf1c9a1be54b4e7f49f3874263