Commit 148f182
committed
Remove deprecated DSS/DSSKey support and upgrade to paramiko 3.0+
This commit removes support for the deprecated DSA (DSS) key algorithm,
which was removed in paramiko 3.0. DSS has been obsolete and insecure
for over a decade and was removed from OpenSSH.
Changes made:
- Updated paramiko dependency from >=2.7.2 to >=3.0.0 in setup.py
- Removed paramiko.DSSKey references from sshtunnel.py:
* Removed 'dsa': paramiko.DSSKey from paramiko_key_types dict
* Removed paramiko.DSSKey from key_types tuple
- Updated documentation to reflect RSA/ECDSA support only:
* Updated docstrings in sshtunnel.py
* Updated CLI help text
* Updated README.rst
* Updated CLAUDE.md to mention Ed25519 support
- Removed SSH_DSS test constant from tests/test_forwarder.py
- Removed 'ssh-dss' from FINGERPRINTS test dict
- Updated all test assertions to use SSH_RSA instead of SSH_DSS
All existing tests pass with paramiko 4.0.0.
Fixes: pahaz#299 (module 'paramiko' has no attribute 'DSSKey')
Based on community proposals: pahaz#300, pahaz#301, pahaz#304
Tested with:
- paramiko 4.0.0 (latest)
- All argument parsing tests pass
- All key-related tests pass1 parent 78a3b12 commit 148f182
File tree
5 files changed
+11
-14
lines changed- tests
5 files changed
+11
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
1094 | 1093 | | |
1095 | 1094 | | |
1096 | 1095 | | |
| |||
1286 | 1285 | | |
1287 | 1286 | | |
1288 | 1287 | | |
1289 | | - | |
| 1288 | + | |
1290 | 1289 | | |
1291 | 1290 | | |
1292 | 1291 | | |
| |||
1295 | 1294 | | |
1296 | 1295 | | |
1297 | 1296 | | |
1298 | | - | |
| 1297 | + | |
1299 | 1298 | | |
1300 | 1299 | | |
1301 | 1300 | | |
| |||
1806 | 1805 | | |
1807 | 1806 | | |
1808 | 1807 | | |
1809 | | - | |
| 1808 | + | |
1810 | 1809 | | |
1811 | 1810 | | |
1812 | 1811 | | |
1813 | 1812 | | |
1814 | 1813 | | |
1815 | 1814 | | |
1816 | 1815 | | |
1817 | | - | |
| 1816 | + | |
1818 | 1817 | | |
1819 | 1818 | | |
1820 | 1819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
1202 | 1200 | | |
1203 | 1201 | | |
1204 | 1202 | | |
1205 | | - | |
| 1203 | + | |
1206 | 1204 | | |
1207 | 1205 | | |
1208 | 1206 | | |
| |||
1232 | 1230 | | |
1233 | 1231 | | |
1234 | 1232 | | |
1235 | | - | |
| 1233 | + | |
1236 | 1234 | | |
1237 | 1235 | | |
1238 | 1236 | | |
| |||
1254 | 1252 | | |
1255 | 1253 | | |
1256 | 1254 | | |
1257 | | - | |
| 1255 | + | |
1258 | 1256 | | |
1259 | 1257 | | |
1260 | 1258 | | |
| |||
0 commit comments