Difficulty Using rsync with hostgator

211 views
Skip to first unread message

William Kwan

unread,
Jan 25, 2014, 11:26:58 PM1/25/14
to na...@googlegroups.com
Hi,

I've been trying out static site generators for the first time and have successfully uploaded my website to my hostgator account using FTP. However, I'm having difficulty getting rsync to work.

I have tried the following in my nanoc.yaml file:
deploy:
  default:
    kind: rsync
    dst:  "username@ip_address:destination_path"
deploy:
  default:
    kind: rsync
    dst:  "username@website_address:destination_path"
However, both give me connection timeouts when I do "nanoc deploy --target default". I have enabled ssh on my hostgator account and have been able to connect by doing

ssh -p 2222 username@ip_adress

Am I making a simple mistake here?

Denis Defreyne

unread,
Jan 26, 2014, 4:26:23 AM1/26/14
to na...@googlegroups.com
Hi William,

You will need to specify the custom port number (2222) since it differs from the standard SSH port (22). Using rsync with a custom port is done by passing -e, e.g.

rsync -e "ssh -p 2222" …

The default rsync options used by nanoc’s rsync deployer are -glpPrtvz, so combining these two yields

deploy:
  default:
    kind: rsync
    dst:  "username@ip_address:destination_path"
    options: [ '-glpPrtvz', '-e "ssh -p 2222"' ]

I haven’t tested this myself, but it should work. Let me know if you have any issues.

Denis

GPG key fingerprint:
02D7 06C2 7383 C9AE 5A6B 8942 A6EB 2130 80E7 63A7

--
--
You received this message because you are subscribed to the nanoc discusssion group.
 
To post to this group, send email to na...@googlegroups.com
To unsubscribe from this group, send email to
nanoc+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nanoc?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nanoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanoc+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

signature.asc

Denis Defreyne

unread,
Jan 26, 2014, 4:29:20 AM1/26/14
to na...@googlegroups.com
On 26 Jan 2014, at 10:26, Denis Defreyne <denis.d...@stoneship.org> wrote:

    options: [ '-glpPrtvz', '-e "ssh -p 2222"' ]

On second thought, not entirely sure about this. Might need to split the 2nd array element so it gets passed correctly:

options: [ '-glpPrtvz', '-e', 'ssh -p 2222' ]

Denis

GPG key fingerprint:
02D7 06C2 7383 C9AE 5A6B 8942 A6EB 2130 80E7 63A7

signature.asc

William Kwan

unread,
Jan 27, 2014, 5:16:09 PM1/27/14
to na...@googlegroups.com
Perfect, the second one worked. Thanks!
Reply all
Reply to author
Forward
0 new messages