Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add port option #16

Merged
merged 1 commit into from

2 participants

@jenius

It's a pretty common practice to have the default login run on a port other than 22, just added an extra option in case this is true for anyone :smile:

@tj tj merged commit f4ec165 into visionmedia:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 15, 2013
  1. @jenius

    add port option

    jenius authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/deploy
View
4 bin/deploy
@@ -112,10 +112,12 @@ ssh_command() {
local url="`config_get user`@`config_get host`"
local key="`config_get key`"
local forward_agent="`config_get forward-agent`"
+ local port="`config_get port`"
test -n "$forward_agent" && local agent="-A"
test -n "$key" && local identity="-i $key"
- echo "ssh $agent $identity $url"
+ test -n "$port" && local port="-p $port"
+ echo "ssh $agent $port $identity $url"
}
#
Something went wrong with that request. Please try again.