You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-9Lines changed: 41 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,19 +62,19 @@ For detailed information on how configuration of plugins works, please refer to
62
62
63
63
### username (`required`)
64
64
65
-
The user for the ssh connection
65
+
The user for the ssh connection.
66
66
67
67
*Default:*`undefined`
68
68
69
69
### host (`required`)
70
70
71
-
The server to connect to
71
+
The server to connect to.
72
72
73
73
*Default:*`undefined`
74
74
75
75
### dstPort
76
76
77
-
The port to forward from the server
77
+
The port to forward from the server.
78
78
79
79
*Default:*`6379`
80
80
@@ -86,31 +86,63 @@ The host to forward to on the destination server.
86
86
87
87
### srcPort
88
88
89
-
The local port for the forwarding
89
+
The local port for the forwarding.
90
90
91
91
*Default:* a random port between `49151` and `65535`
92
92
93
93
### privateKeyPath
94
94
95
-
The local path to your ssh private key
95
+
The local path to your ssh private key.
96
96
97
-
*Default:*`~/.ssh/id_rsa`
97
+
*Default:* null
98
+
99
+
### password
100
+
101
+
Authorization string for the ssh connection.
102
+
103
+
*Default:* null
98
104
99
105
### tunnelClient
100
106
101
107
The client used to create the ssh tunnel. This allows the user the ability to use their own client for uploading instead of the one provided by this plugin.
102
108
103
109
*Default:* the tunnel provided by `tunnel-ssh`
104
110
105
-
## Running Tests
111
+
## Authorization
106
112
107
-
-`npm test`
113
+
ember-cli-deploy-ssh-tunnel uses the [tunnel-ssh](https://github.com/Finanzchef24-GmbH/tunnel-ssh) module to provide the SSH tunnel. Two options exist to configure tunnel-ssh from ember-cli-deploy-ssh-tunnel: `privateKeyPath` and `password`. By default, we assume you have created a public and private key and added it to ssh-agent as described in the [default GitHub setup](https://help.github.com/articles/generating-ssh-keys/).
If no authentication information is delivered to tunnel-ssh, it will [default to using ssh-agent](https://github.com/Finanzchef24-GmbH/tunnel-ssh), so it will default to using the default id_rsa keys generated as described in the GitHub article. This includes password-protected SSH keys. If you would like to use a different SSH key, set the `privateKeyPath` option:
116
+
117
+
```js
118
+
ENV['ssh-tunnel'] = {
119
+
username:'yourname',
120
+
host:'yourserver',
121
+
privateKeyPath:'~/.ssh/another_key_rsa'
122
+
};
123
+
```
110
124
125
+
If you just want to use a password to tunnel, you can specify that as an option (we recommend using environmental variables in an .env file):
126
+
127
+
```js
128
+
ENV['ssh-tunnel'] = {
129
+
username:'yourname',
130
+
host:'yourserver',
131
+
password:process.env.SSH_PASSWORD
132
+
};
133
+
```
134
+
135
+
NOTE: at this time, this plugin does not support setting a path to `privateKeyPath` to a key that has been encrypted with a password.
136
+
137
+
## Running Tests
138
+
139
+
1.`npm install`
140
+
2.`npm test`
111
141
112
142
## Thanks to:
113
143
114
144
@lukemelia and @achambers and the other folks from the ember-cli-deploy project.
115
145
116
146
@tim-evans for the original implementation in [ember-deploy-redis](https://github.com/LevelbossMike/ember-deploy-redis)
0 commit comments