# How to specify SwitchTower SSH port

**URL:** <https://www.ruby-forum.com/t/how-to-specify-switchtower-ssh-port/50915>\
**Category:** Rails\
**Created:** [December 22, 2005, 8:50pm UTC](https://www.ruby-forum.com/t/how-to-specify-switchtower-ssh-port/50915 "2005-12-22T20:50:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 22, 2005, 8:50pm UTC](https://www.ruby-forum.com/t/how-to-specify-switchtower-ssh-port/50915/1 "2005-12-22T20:50:45Z")

</div>

Hi !

Following Ezra’s suggestions on [Ruby on Rails Blog / What is Ruby on Rails for?](http://brainspl.at/pages/perfect_vps),  
I changed the port sshd listens to.

I’m trying to setup SwitchTower, and I don’t know how to set the port.  
Where should that be configured ? I can’t see anything in  
switchtower.rake, nor can I see it in the source.

If this already exists, can anybody point me to documentation. If  
not, can I get any pointer as to where that should be added ? It  
looks to me like it should be in configuration.rb

Thanks !

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 22, 2005, 9:20pm UTC](https://www.ruby-forum.com/t/how-to-specify-switchtower-ssh-port/50915/2 "2005-12-22T21:20:50Z")

</div>

On Dec 22, 2005, at 12:49 PM, Francois B. wrote:

> not, can I get any pointer as to where that should be added ? It  
> looks to me like it should be in configuration.rb

Ok, I can’t remember if I’ve actually released this feature yet or  
not… but in the latest SwitchTower source code (at least), you can  
do the following in your deploy.rb:

ssh\_options[:port] = 123

- Jamis

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 22, 2005, 9:38pm UTC](https://www.ruby-forum.com/t/how-to-specify-switchtower-ssh-port/50915/3 "2005-12-22T21:38:54Z")

</div>

On Dec 22, 2005, at 1:19 PM, Jamis B. wrote:

> > switchtower.rake, nor can I see it in the source.

Actually, upon checking, this feature has _not_ yet been released, so  
I apologize. I’m hacking on ST this weekend, though, and I hope to  
have a new release available next week sometime.

- Jamis

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [December 22, 2005, 9:45pm UTC](https://www.ruby-forum.com/t/how-to-specify-switchtower-ssh-port/50915/4 "2005-12-22T21:45:01Z")

</div>

2005/12/22, Jamis B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> On Dec 22, 2005, at 1:19 PM, Jamis B. wrote:
> 
> > ssh\_options[:port] = 123
> 
> Actually, upon checking, this feature has _not_ yet been released, so  
> I apologize. I’m hacking on ST this weekend, though, and I hope to  
> have a new release available next week sometime.

Thanks, Jamis. Looking forward to that.

Have a nice day !
