support a non-standard SSH port

This commit is contained in:
Kohsuke Kawaguchi 2013-03-27 13:42:51 -07:00
parent 04993ecb19
commit 43a9bcf78c
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module Blimpy
attr_reader :allowed_regions, :region
attr_accessor :image_id, :flavor, :group, :ports
attr_accessor :dns, :internal_dns
attr_accessor :name, :tags, :fleet_id, :username, :livery
attr_accessor :name, :tags, :fleet_id, :username, :ssh_port, :livery
def self.from_instance_id(an_id, data)
@ -200,6 +200,7 @@ module Blimpy
def ssh_into(*args)
run_command('ssh', '-o', 'PasswordAuthentication=no',
'-o', 'StrictHostKeyChecking=no',
'-p', ssh_port||22.to_s,
'-l', username, dns, *args)
end