#21 new
David Hainlin

Deploy using non-default SSH port

Reported by David Hainlin | September 4th, 2009 @ 09:03 AM

It would be great if Webby could deploy via SSH to a system which listens on a port other than 22.

Because webby depends on SshDirPublisher for this (and it does not support alternative ports (AFAIK)), I have ended up patching locally installed webby gems like this:

task :ssh do
SITE.port ||= "22" sh "scp -P #{SITE.port} -r output/* #{SITE.user}@#{SITE.host}:#{SITE.remote_dir}" end

This allows defaults to use port 22 and if a sitefile contains SITE.port config, will use that port instead.

I've attached a suggested patch.

Comments and changes to this ticket

  • Joel

    Joel October 20th, 2009 @ 08:42 AM

    +1 I have a lot of servers where ssh is not on the default port and it would be nice to be able to use webby's deploy for ease of use

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Static website generate (ASCII Alchemy)

People watching this ticket

Attachments

Tags

Pages