Commit e45544f
fix: preserve special characters in server passwords
Fixed critical bug where passwords containing quotes were corrupted during parsing.
The `tr -d '"'` command was removing ALL quotes, including those within password values.
Changes:
- Rewrote get_server_config() to use IFS-based parsing instead of cut+tr
- Only removes surrounding quotes, preserves quotes within values
- Improved test_ssh_connection() with better error logging
- Added SSH_MANAGER_DEBUG flag for troubleshooting connection issues
- Increased connection timeout from 5s to 10s
This fixes issues with passwords containing special characters like: \ [ ] " ( )
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1ebcd1e commit e45544f
1 file changed
+43
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
117 | 132 | | |
118 | 133 | | |
119 | 134 | | |
| |||
188 | 203 | | |
189 | 204 | | |
190 | 205 | | |
191 | | - | |
| 206 | + | |
192 | 207 | | |
193 | | - | |
| 208 | + | |
194 | 209 | | |
195 | 210 | | |
196 | 211 | | |
197 | 212 | | |
198 | | - | |
| 213 | + | |
199 | 214 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
203 | 220 | | |
204 | 221 | | |
205 | 222 | | |
206 | | - | |
| 223 | + | |
207 | 224 | | |
208 | 225 | | |
209 | 226 | | |
210 | | - | |
| 227 | + | |
| 228 | + | |
211 | 229 | | |
212 | 230 | | |
| 231 | + | |
213 | 232 | | |
214 | 233 | | |
215 | 234 | | |
216 | | - | |
| 235 | + | |
| 236 | + | |
217 | 237 | | |
218 | | - | |
219 | | - | |
| 238 | + | |
| 239 | + | |
220 | 240 | | |
| 241 | + | |
221 | 242 | | |
222 | 243 | | |
223 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
224 | 253 | | |
225 | 254 | | |
226 | 255 | | |
| |||
0 commit comments