1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>paramiko.Transport</title>
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
<tr valign="center">
<th class="navbar"> <a class="navbar" href="paramiko-module.html">Home</a> </th>
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<font size="-1"><b class="breadcrumbs">
<a href="paramiko-module.html">Package paramiko</a> ::
Class Transport
</b></font></br>
</td>
<td><table cellpadding="0" cellspacing="0">
<tr><td align="right"><font size="-2">[show private | <a href="../public/paramiko.Transport-class.html">hide private</a>]</font></td></tr>
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="paramiko.Transport-class.html" target="_top">no frames</a>]</font></td></tr>
</table></td>
</tr></table>
<!-- =========== START OF CLASS DESCRIPTION =========== -->
<h2 class="class">Type Transport</h2>
<pre class="base-tree">
<a href="__builtin__.object-class.html"><code>object</code></a> --+
|
<a href="../private/threading._Verbose-class.html"><code>_Verbose</code></a> --+
|
<a href="threading.Thread-class.html"><code>Thread</code></a> --+
|
<b>Transport</b>
</pre><br />
<hr/>
An SSH Transport attaches to a stream (usually a socket), negotiates
an encrypted session, authenticates, and then creates stream tunnels,
called <a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>s, across the session. Multiple
channels can be multiplexed across a single session (and often are, in
the case of port forwardings).
<hr/>
<!-- =========== START OF METHOD SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
<th colspan="2">Method Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#__init__" class="summary-sig-name"><code>__init__</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>sock</span>)</span></code>
<br />
Create a new SSH session over an existing socket, or socket-like
object.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="__del__"></a><span class="summary-sig"><span class="summary-sig-name">__del__</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> str
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#__repr__" class="summary-sig-name"><code>__repr__</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Returns a string representation of this object, for debugging.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#accept" class="summary-sig-name"><code>accept</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>timeout</span>)</span></code>
<br />
Return the next channel opened by the client over this transport, in
server mode.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#add_server_key" class="summary-sig-name"><code>add_server_key</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>key</span>)</span></code>
<br />
Add a host key to the list of keys used for server mode.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> list
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#auth_interactive" class="summary-sig-name"><code>auth_interactive</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>username</span>,
<span class=summary-sig-arg>handler</span>,
<span class=summary-sig-arg>submethods</span>)</span></code>
<br />
Authenticate to the server interactively.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> list
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#auth_none" class="summary-sig-name"><code>auth_none</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>username</span>)</span></code>
<br />
Try to authenticate to the server using no authentication at all.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> list
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#auth_password" class="summary-sig-name"><code>auth_password</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>username</span>,
<span class=summary-sig-arg>password</span>,
<span class=summary-sig-arg>event</span>,
<span class=summary-sig-arg>fallback</span>)</span></code>
<br />
Authenticate to the server using a password.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> list
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#auth_publickey" class="summary-sig-name"><code>auth_publickey</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>username</span>,
<span class=summary-sig-arg>key</span>,
<span class=summary-sig-arg>event</span>)</span></code>
<br />
Authenticate to the server using a private key.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#close" class="summary-sig-name"><code>close</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Close this session, and any open channels that are tied to it.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#connect" class="summary-sig-name"><code>connect</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>hostkey</span>,
<span class=summary-sig-arg>username</span>,
<span class=summary-sig-arg>password</span>,
<span class=summary-sig-arg>pkey</span>)</span></code>
<br />
Negotiate an SSH2 session, and optionally verify the server's host key
and authenticate using a password or private key.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> Exception
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#get_exception" class="summary-sig-name"><code>get_exception</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return any exception that happened during the last server request.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> bool
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#get_hexdump" class="summary-sig-name"><code>get_hexdump</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return <code>True</code> if the transport is currently logging hex
dumps of protocol traffic.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> str
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#get_log_channel" class="summary-sig-name"><code>get_log_channel</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return the channel name used for this transport's logging.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#get_remote_server_key" class="summary-sig-name"><code>get_remote_server_key</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return the host key of the server (in client mode).</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="paramiko.SecurityOptions-class.html"
class="link"><code>SecurityOptions</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#get_security_options" class="summary-sig-name"><code>get_security_options</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return a <a href="paramiko.SecurityOptions-class.html"
class="link"><code>SecurityOptions</code></a> object which can be used to
tweak the encryption algorithms this transport will permit, and the order
of preference for them.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#get_server_key" class="summary-sig-name"><code>get_server_key</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return the active host key, in server mode.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> string
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#get_username" class="summary-sig-name"><code>get_username</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return the username this connection is authenticated for.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="paramiko.Message-class.html"
class="link"><code>Message</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#global_request" class="summary-sig-name"><code>global_request</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>kind</span>,
<span class=summary-sig-arg>data</span>,
<span class=summary-sig-arg>wait</span>)</span></code>
<br />
Make a global request to the remote host.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> bool
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#is_active" class="summary-sig-name"><code>is_active</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return true if this session is active (open).</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> bool
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#is_authenticated" class="summary-sig-name"><code>is_authenticated</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Return true if this session is active and authenticated.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> bool
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#load_server_moduli" class="summary-sig-name"><code>load_server_moduli</code></a>(<span class=summary-sig-arg>filename</span>)</span></code>
<br />
<i>(optional)</i> Load a file of prime moduli for use in doing
group-exchange key negotiation in server mode. <i>(Static method)</i>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#open_channel" class="summary-sig-name"><code>open_channel</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>kind</span>,
<span class=summary-sig-arg>dest_addr</span>,
<span class=summary-sig-arg>src_addr</span>)</span></code>
<br />
Request a new channel to the server.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#open_session" class="summary-sig-name"><code>open_session</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Request a new channel to the server, of type
<code>"session"</code>.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> <a href="paramiko.SFTPClient-class.html"
class="link"><code>SFTPClient</code></a>
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#open_sftp_client" class="summary-sig-name"><code>open_sftp_client</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Create an SFTP client channel from an open transport.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> bool
</font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#renegotiate_keys" class="summary-sig-name"><code>renegotiate_keys</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
Force this session to switch to new keys.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="run"></a><span class="summary-sig"><span class="summary-sig-name">run</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#send_ignore" class="summary-sig-name"><code>send_ignore</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>bytes</span>)</span></code>
<br />
Send a junk packet across the encrypted link.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#set_hexdump" class="summary-sig-name"><code>set_hexdump</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>hexdump</span>)</span></code>
<br />
Turn on/off logging a hex dump of protocol traffic at DEBUG level in
the logs.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#set_keepalive" class="summary-sig-name"><code>set_keepalive</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>interval</span>)</span></code>
<br />
Turn on/off keepalive packets (default is off).</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#set_log_channel" class="summary-sig-name"><code>set_log_channel</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>name</span>)</span></code>
<br />
Set the channel for this transport's logging.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#set_subsystem_handler" class="summary-sig-name"><code>set_subsystem_handler</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>name</span>,
<span class=summary-sig-arg>handler</span>,
<span class="summary-sig-vararg">*larg</span>,
<span class="summary-sig-kwarg">**kwarg</span>)</span></code>
<br />
Set the handler class for a subsystem in server mode.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#start_client" class="summary-sig-name"><code>start_client</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>event</span>)</span></code>
<br />
Negotiate a new SSH2 session as a client.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#start_server" class="summary-sig-name"><code>start_server</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>event</span>,
<span class=summary-sig-arg>server</span>)</span></code>
<br />
Negotiate a new SSH2 session as a server.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="stop_thread"></a><span class="summary-sig"><span class="summary-sig-name">stop_thread</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="paramiko.Transport-class.html#use_compression" class="summary-sig-name"><code>use_compression</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>compress</span>)</span></code>
<br />
Turn on/off compression.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_activate_inbound" class="summary-sig-name"><code>_activate_inbound</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
switch on newly negotiated encryption parameters for inbound
traffic</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_activate_outbound" class="summary-sig-name"><code>_activate_outbound</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
switch on newly negotiated encryption parameters for outbound
traffic</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_auth_trigger"></a><span class="summary-sig"><span class="summary-sig-name">_auth_trigger</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_check_banner"></a><span class="summary-sig"><span class="summary-sig-name">_check_banner</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_compute_key" class="summary-sig-name"><code>_compute_key</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>id</span>,
<span class=summary-sig-arg>nbytes</span>)</span></code>
<br />
id is 'A' - 'F' for the various keys used by ssh</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_expect_packet" class="summary-sig-name"><code>_expect_packet</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>type</span>)</span></code>
<br />
used by a kex object to register the next packet type it expects to
see</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_get_cipher"></a><span class="summary-sig"><span class="summary-sig-name">_get_cipher</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>name</span>,
<span class=summary-sig-arg>key</span>,
<span class=summary-sig-arg>iv</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_get_modulus_pack" class="summary-sig-name"><code>_get_modulus_pack</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
used by KexGex to find primes for group exchange</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_get_subsystem_handler"></a><span class="summary-sig"><span class="summary-sig-name">_get_subsystem_handler</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>name</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_log"></a><span class="summary-sig"><span class="summary-sig-name">_log</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>level</span>,
<span class=summary-sig-arg>msg</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_negotiate_keys"></a><span class="summary-sig"><span class="summary-sig-name">_negotiate_keys</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_channel_open"></a><span class="summary-sig"><span class="summary-sig-name">_parse_channel_open</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_channel_open_failure"></a><span class="summary-sig"><span class="summary-sig-name">_parse_channel_open_failure</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_channel_open_success"></a><span class="summary-sig"><span class="summary-sig-name">_parse_channel_open_success</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_debug"></a><span class="summary-sig"><span class="summary-sig-name">_parse_debug</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_disconnect"></a><span class="summary-sig"><span class="summary-sig-name">_parse_disconnect</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_global_request"></a><span class="summary-sig"><span class="summary-sig-name">_parse_global_request</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_kex_init"></a><span class="summary-sig"><span class="summary-sig-name">_parse_kex_init</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_newkeys"></a><span class="summary-sig"><span class="summary-sig-name">_parse_newkeys</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_request_failure"></a><span class="summary-sig"><span class="summary-sig-name">_parse_request_failure</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_parse_request_success"></a><span class="summary-sig"><span class="summary-sig-name">_parse_request_success</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>m</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_send_kex_init" class="summary-sig-name"><code>_send_kex_init</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
<br />
announce to the other side that we'd like to negotiate keys, and what
kind of key negotiation we support.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_send_message"></a><span class="summary-sig"><span class="summary-sig-name">_send_message</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>data</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_send_user_message" class="summary-sig-name"><code>_send_user_message</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>data</span>)</span></code>
<br />
send a message, but block if we're in key negotiation.</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_set_K_H" class="summary-sig-name"><code>_set_K_H</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>k</span>,
<span class=summary-sig-arg>h</span>)</span></code>
<br />
used by a kex object to set the K (root key) and H (exchange hash)</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/paramiko.Transport-class.html#_unlink_channel" class="summary-sig-name"><code>_unlink_channel</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>chanid</span>)</span></code>
<br />
used by a Channel to remove itself from the active channel list</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><a name="_verify_key"></a><span class="summary-sig"><span class="summary-sig-name">_verify_key</span>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>host_key</span>,
<span class=summary-sig-arg>sig</span>)</span></code>
</td></tr>
<tr bgcolor="#e8f0f8" class="group">
<th colspan="2"> Inherited from Thread</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="threading.Thread-class.html#getName" class="summary-sig-name"><code>getName</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="threading.Thread-class.html#isAlive" class="summary-sig-name"><code>isAlive</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="threading.Thread-class.html#isDaemon" class="summary-sig-name"><code>isDaemon</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="threading.Thread-class.html#join" class="summary-sig-name"><code>join</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>timeout</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="threading.Thread-class.html#setDaemon" class="summary-sig-name"><code>setDaemon</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>daemonic</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="threading.Thread-class.html#setName" class="summary-sig-name"><code>setName</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>name</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="threading.Thread-class.html#start" class="summary-sig-name"><code>start</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/threading.Thread-class.html#_set_daemon" class="summary-sig-name"><code>_set_daemon</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr bgcolor="#e8f0f8" class="group">
<th colspan="2"> Inherited from _Verbose</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="../private/threading._Verbose-class.html#_note" class="summary-sig-name"><code>_note</code></a>(<span class=summary-sig-arg>self</span>,
<span class=summary-sig-arg>format</span>,
<span class="summary-sig-vararg">*args</span>)</span></code>
</td></tr>
<tr bgcolor="#e8f0f8" class="group">
<th colspan="2"> Inherited from object</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__delattr__" class="summary-sig-name"><code>__delattr__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
x.__delattr__('name') <==> del x.name</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__getattribute__" class="summary-sig-name"><code>__getattribute__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
x.__getattribute__('name') <==> x.name</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__hash__" class="summary-sig-name"><code>__hash__</code></a>(<span class=summary-sig-arg>x</span>)</span></code>
<br />
x.__hash__() <==> hash(x)</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__new__" class="summary-sig-name"><code>__new__</code></a>(<span class=summary-sig-arg>T</span>,
<span class=summary-sig-arg>S</span>,
<span class="summary-sig-vararg">...</span>)</span></code>
<br />
T.__new__(S, ...) -> a new object with type S, a subtype of T</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__reduce__" class="summary-sig-name"><code>__reduce__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
helper for pickle</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__reduce_ex__" class="summary-sig-name"><code>__reduce_ex__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
helper for pickle</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__setattr__" class="summary-sig-name"><code>__setattr__</code></a>(<span class="summary-sig-vararg">...</span>)</span></code>
<br />
x.__setattr__('name', value) <==> x.name = value</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
<td><code><span class="summary-sig"><a href="__builtin__.object-class.html#__str__" class="summary-sig-name"><code>__str__</code></a>(<span class=summary-sig-arg>x</span>)</span></code>
<br />
x.__str__() <==> str(x)</td></tr>
</table><br />
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
<th colspan="2">Class Variable Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_channel_handler_table"><code>_channel_handler_table</code></a></b> = <span title="{96: <unbound method Channel._handle_eof>, 97: <unbound method Channel._handle_close>, 98: <unbound method Channel._handle_request>, 99: <unbound method Channel._request_success>, 100: <unbound method Channel._request_failed>, 93: <unbound method Channel._window_adjust>, 94: <unbound method Channel._feed>, 95: <unbound method Channel._feed_extended>}"><code>{96: <unbound method Channel._h<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_cipher_info"><code>_cipher_info</code></a></b> = <span title="{'blowfish-cbc': {'block-size': 8, 'key-size': 16, 'class': <module 'Crypto.Cipher.Blowfish' from '/usr/lib/python2.4/site-packages/Crypto/Cipher/Blowfish.so'>, 'mode': 2}, '3des-cbc': {'block-size': 8, 'key-size': 24, 'class': <module 'Crypto.Cipher.DES3' from '/usr/lib/python2.4/site-packages/Crypto/Cipher/DES3.so'>, 'mode': 2}, 'aes256-cbc': {'block-size': 16, 'key-size': 32, 'class': <module 'Crypto.Cipher.AES' from '/usr/lib/python2.4/site-packages/Crypto/Cipher/AES.so'>, 'mode': 2}, 'aes128-cbc': {'block-size': 16, 'key-size': 16, 'class': <module 'Crypto.Cipher.AES' from '/usr/lib/py..."><code>{'blowfish-cbc': {'block-size': 8, 'key-s<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_CLIENT_ID"><code>_CLIENT_ID</code></a></b> = <span title="'paramiko_1.5.2'"><code><span class="variable-quote">'</span>paramiko_1.5.2<span class="variable-quote">'</span> </code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_compression_info"><code>_compression_info</code></a></b> = <span title="{'none': (None, None), 'zlib': (<class 'paramiko.compress.ZlibCompressor'>, <class 'paramiko.compress.ZlibDecompressor'>), 'zlib@openssh.com': (<class 'paramiko.compress.ZlibCompressor'>, <class 'paramiko.compress.ZlibDecompressor'>)}"><code>{'none': (None, None), 'zlib': (<cla<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_handler_table"><code>_handler_table</code></a></b> = <span title="{80: <function _parse_global_request at 0xb7b13fb4>, 81: <function _parse_request_success at 0xb7b1e02c>, 82: <function _parse_request_failure at 0xb7b1e064>, 20: <function _negotiate_keys at 0xb7b13dbc>, 21: <function _parse_newkeys at 0xb7b13f44>, 90: <function _parse_channel_open at 0xb7b1e10c>, 91: <function _parse_channel_open_success at 0xb7b1e09c>, 92: <function _parse_channel_open_failure at 0xb7b1e0d4>}"><code>{80: <function _parse_global_request at<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_kex_info"><code>_kex_info</code></a></b> = <span title="{'diffie-hellman-group1-sha1': <class 'paramiko.kex_group1.KexGroup1'>, 'diffie-hellman-group-exchange-sha1': <class 'paramiko.kex_gex.KexGex'>}"><code>{'diffie-hellman-group1-sha1': <class 'param<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_key_info"><code>_key_info</code></a></b> = <span title="{'ssh-dss': <class 'paramiko.DSSKey'>, 'ssh-rsa': <class 'paramiko.RSAKey'>}"><code>{'ssh-dss': <class 'paramiko.DSSKey'>, 'ssh-<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_mac_info"><code>_mac_info</code></a></b> = <span title="{'hmac-sha1': {'class': <module 'Crypto.Hash.SHA' from '/usr/lib/python2.4/site-packages/Crypto/Hash/SHA.pyc'>, 'size': 20}, 'hmac-md5-96': {'class': <module 'Crypto.Hash.MD5' from '/usr/lib/python2.4/site-packages/Crypto/Hash/MD5.pyc'>, 'size': 12}, 'hmac-sha1-96': {'class': <module 'Crypto.Hash.SHA' from '/usr/lib/python2.4/site-packages/Crypto/Hash/SHA.pyc'>, 'size': 12}, 'hmac-md5': {'class': <module 'Crypto.Hash.MD5' from '/usr/lib/python2.4/site-packages/Crypto/Hash/MD5.pyc'>, 'size': 16}}"><code>{'hmac-sha1': {'class': <module 'Crypto.Hash<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>NoneType</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_modulus_pack"><code>_modulus_pack</code></a></b> = <span title="None">None </span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_preferred_ciphers"><code>_preferred_ciphers</code></a></b> = <span title="('aes128-cbc', 'blowfish-cbc', 'aes256-cbc', '3des-cbc')"><code>('aes128-cbc', 'blowfish-cbc', 'aes<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_preferred_compression"><code>_preferred_compression</code></a></b> = <span title="('none',)"><code>('none',) </code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_preferred_kex"><code>_preferred_kex</code></a></b> = <span title="('diffie-hellman-group1-sha1', 'diffie-hellman-group-exchange-sha1')"><code>('diffie-hellman-group1-sha1', 'diffie-<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_preferred_keys"><code>_preferred_keys</code></a></b> = <span title="('ssh-rsa', 'ssh-dss')"><code>('ssh-rsa', 'ssh-dss') </code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_preferred_macs"><code>_preferred_macs</code></a></b> = <span title="('hmac-sha1', 'hmac-md5', 'hmac-sha1-96', 'hmac-md5-96')"><code>('hmac-sha1', 'hmac-md5', 'hmac-sha1-9<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
<td><b><a href="../private/paramiko.Transport-class.html#_PROTO_ID"><code>_PROTO_ID</code></a></b> = <span title="'2.0'"><code><span class="variable-quote">'</span>2.0<span class="variable-quote">'</span> </code>
</span></td></tr>
<tr bgcolor="#e8f0f8" class="group">
<th colspan="2"> Inherited from Thread</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>bool</code></font></td>
<td><b><a href="../private/threading.Thread-class.html#__initialized"><code>_Thread__initialized</code></a></b> = <span title="False"><code>False </code>
</span></td></tr>
</table><br />
<!-- =========== START OF INSTANCE METHOD DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
<th colspan="2">Instance Method Details</th></tr>
</table>
<a name="__init__"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">__init__</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>sock</span>)</span>
<br /><i>(Constructor)</i>
</h3>
<p>Create a new SSH session over an existing socket, or socket-like
object. This only creates the Transport object; it doesn't begin the
SSH session yet. Use <a href="paramiko.Transport-class.html#connect"
class="link"><code>connect</code></a> or <a
href="paramiko.Transport-class.html#start_client"
class="link"><code>start_client</code></a> to begin a client session,
or <a href="paramiko.Transport-class.html#start_server"
class="link"><code>start_server</code></a> to begin a server
session.</p>
If the object is not actually a socket, it must have the following
methods:
<ul>
<li>
<code>send(str)</code>: Writes from 1 to <code>len(str)</code>
bytes, and returns an int representing the number of bytes written.
Returns 0 or raises <code>EOFError</code> if the stream has been
closed.
</li>
<li>
<code>recv(int)</code>: Reads from 1 to <code>int</code> bytes
and returns them as a string. Returns 0 or raises
<code>EOFError</code> if the stream has been closed.
</li>
<li>
<code>close()</code>: Closes the socket.
</li>
<li>
<code>settimeout(n)</code>: Sets a (float) timeout on I/O
operations.
</li>
</ul>
For ease of use, you may also pass in an address (as a tuple) or a
host string as the <code>sock</code> argument. (A host string is a
hostname with an optional port (separated by
<code>":"</code>) which will be converted into a tuple of
<code>(hostname, port)</code>.) A socket will be connected to this
address and used for communication. Exceptions from the
<code>socket</code> call may be thrown in this case.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>sock</b></code> -
a socket or socket-like object to create the session over.
<br /><i>
(type=socket)</i>
</dd>
</dl>
<dl><dt><b>Overrides:</b></dt>
<dd><a href="threading.Thread-class.html#__init__"><code>threading.Thread.__init__</code></a></dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="__repr__"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">__repr__</span>(<span class=sig-arg>self</span>)</span>
<br /><i>(Representation operator)</i>
</h3>
Returns a string representation of this object, for debugging.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
str
</dd>
</dl>
<dl><dt><b>Overrides:</b></dt>
<dd><a href="threading.Thread-class.html#__repr__"><code>threading.Thread.__repr__</code></a></dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="accept"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">accept</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>timeout</span>=<span class=sig-default>None</span>)</span>
</h3>
Return the next channel opened by the client over this transport, in
server mode. If no channel is opened before the given timeout,
<code>None</code> is returned.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>timeout</b></code> -
seconds to wait for a channel, or <code>None</code> to wait
forever
<br /><i>
(type=int)</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
a new Channel opened by the client
<br /><i>
(type=<a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="add_server_key"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">add_server_key</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>key</span>)</span>
</h3>
Add a host key to the list of keys used for server mode. When
behaving as a server, the host key is used to sign certain packets
during the SSH2 negotiation, so that the client can trust that we are
who we say we are. Because this is used for signing, the key must
contain private key info, not just the public half. Only one key of
each type (RSA or DSS) is kept.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>key</b></code> -
the host key to add, usually an <a
href="paramiko.RSAKey-class.html"
class="link"><code>RSAKey</code></a> or <a
href="paramiko.DSSKey-class.html"
class="link"><code>DSSKey</code></a>.
<br /><i>
(type=<a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="auth_interactive"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">auth_interactive</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>username</span>,
<span class=sig-arg>handler</span>,
<span class=sig-arg>submethods</span>=<span class=sig-default>''</span>)</span>
</h3>
<p>Authenticate to the server interactively. A handler is used to
answer arbitrary questions from the server. On many servers, this is
just a dumb wrapper around PAM.</p>
<p>This method will block until the authentication succeeds or fails,
peroidically calling the handler asynchronously to get answers to
authentication questions. The handler may be called more than once if
the server continues to ask questions.</p>
<p>The handler is expected to be a callable that will handle calls of
the form: <code>handler(title, instructions, prompt_list)</code>. The
<code>title</code> is meant to be a dialog-window title, and the
<code>instructions</code> are user instructions (both are strings).
<code>prompt_list</code> will be a list of prompts, each prompt being a
tuple of <code>(str, bool)</code>. The string is the prompt and the
boolean indicates whether the user text should be echoed.</p>
<p>A sample call would thus be: <code>handler('title', 'instructions',
[('Password:', False)])</code>.</p>
<p>The handler should return a list or tuple of answers to the server's
questions.</p>
If the server requires multi-step authentication (which is very
rare), this method will return a list of auth types permissible for the
next step. Otherwise, in the normal case, an empty list is
returned.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>username</b></code> -
the username to authenticate as
<br /><i>
(type=string)</i>
<dd><code><b>handler</b></code> -
a handler for responding to server questions
<br /><i>
(type=callable)</i>
<dd><code><b>submethods</b></code> -
a string list of desired submethods (optional)
<br /><i>
(type=str)</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
list of auth types permissible for the next stage of
authentication (normally empty).
<br /><i>
(type=list)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>BadAuthenticationType</b></code> -
if public-key authentication isn't allowed by the server for
this user
<dd><code><b>SSHException</b></code> -
if the authentication failed
</dl>
<p><b>Since:</b> 1.5
</p>
</dd></dl>
</td></tr></table>
<a name="auth_none"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">auth_none</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>username</span>)</span>
</h3>
Try to authenticate to the server using no authentication at all.
This will almost always fail. It may be useful for determining the list
of authentication types supported by the server, by catching the <a
href="paramiko.BadAuthenticationType-class.html"
class="link"><code>BadAuthenticationType</code></a> exception
raised.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>username</b></code> -
the username to authenticate as
<br /><i>
(type=string)</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
list of auth types permissible for the next stage of
authentication (normally empty)
<br /><i>
(type=list)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>BadAuthenticationType</b></code> -
if "none" authentication isn't allowed by the server
for this user
<dd><code><b>SSHException</b></code> -
if the authentication failed due to a network error
</dl>
<p><b>Since:</b> 1.5
</p>
</dd></dl>
</td></tr></table>
<a name="auth_password"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">auth_password</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>username</span>,
<span class=sig-arg>password</span>,
<span class=sig-arg>event</span>=<span class=sig-default>None</span>,
<span class=sig-arg>fallback</span>=<span class=sig-default>True</span>)</span>
</h3>
<p>Authenticate to the server using a password. The username and
password are sent over an encrypted link.</p>
<p>If an <code>event</code> is passed in, this method will return
immediately, and the event will be triggered once authentication
succeeds or fails. On success, <a
href="paramiko.Transport-class.html#is_authenticated"
class="link"><code>is_authenticated</code></a> will return
<code>True</code>. On failure, you may use <a
href="paramiko.Transport-class.html#get_exception"
class="link"><code>get_exception</code></a> to get more detailed error
information.</p>
<p>Since 1.1, if no event is passed, this method will block until the
authentication succeeds or fails. On failure, an exception is raised.
Otherwise, the method simply returns.</p>
<p>Since 1.5, if no event is passed and <code>fallback</code> is
<code>True</code> (the default), if the server doesn't support plain
password authentication but does support so-called
"keyboard-interactive" mode, an attempt will be made to
authenticate using this interactive mode. If it fails, the normal
exception will be thrown as if the attempt had never been made. This is
useful for some recent Gentoo and Debian distributions, which turn off
plain password authentication in a misguided belief that interactive
authentication is "more secure". (It's not.)</p>
If the server requires multi-step authentication (which is very
rare), this method will return a list of auth types permissible for the
next step. Otherwise, in the normal case, an empty list is
returned.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>username</b></code> -
the username to authenticate as
<br /><i>
(type=string)</i>
<dd><code><b>password</b></code> -
the password to authenticate with
<br /><i>
(type=string)</i>
<dd><code><b>event</b></code> -
an event to trigger when the authentication attempt is
complete (whether it was successful or not)
<br /><i>
(type=threading.Event)</i>
<dd><code><b>fallback</b></code> -
<code>True</code> if an attempt at an automated
"interactive" password auth should be made if the
server doesn't support normal password auth
<br /><i>
(type=bool)</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
list of auth types permissible for the next stage of
authentication (normally empty)
<br /><i>
(type=list)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>BadAuthenticationType</b></code> -
if password authentication isn't allowed by the server for
this user (and no event was passed in)
<dd><code><b>SSHException</b></code> -
if the authentication failed (and no event was passed in)
</dl>
</dd></dl>
</td></tr></table>
<a name="auth_publickey"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">auth_publickey</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>username</span>,
<span class=sig-arg>key</span>,
<span class=sig-arg>event</span>=<span class=sig-default>None</span>)</span>
</h3>
<p>Authenticate to the server using a private key. The key is used to
sign data from the server, so it must include the private part.</p>
<p>If an <code>event</code> is passed in, this method will return
immediately, and the event will be triggered once authentication
succeeds or fails. On success, <a
href="paramiko.Transport-class.html#is_authenticated"
class="link"><code>is_authenticated</code></a> will return
<code>True</code>. On failure, you may use <a
href="paramiko.Transport-class.html#get_exception"
class="link"><code>get_exception</code></a> to get more detailed error
information.</p>
<p>Since 1.1, if no event is passed, this method will block until the
authentication succeeds or fails. On failure, an exception is raised.
Otherwise, the method simply returns.</p>
If the server requires multi-step authentication (which is very
rare), this method will return a list of auth types permissible for the
next step. Otherwise, in the normal case, an empty list is
returned.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>username</b></code> -
the username to authenticate as
<br /><i>
(type=string)</i>
<dd><code><b>key</b></code> -
the private key to authenticate with
<br /><i>
(type=<a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>)</i>
<dd><code><b>event</b></code> -
an event to trigger when the authentication attempt is
complete (whether it was successful or not)
<br /><i>
(type=threading.Event)</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
list of auth types permissible for the next stage of
authentication (normally empty).
<br /><i>
(type=list)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>BadAuthenticationType</b></code> -
if public-key authentication isn't allowed by the server for
this user (and no event was passed in).
<dd><code><b>SSHException</b></code> -
if the authentication failed (and no event was passed in).
</dl>
</dd></dl>
</td></tr></table>
<a name="close"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">close</span>(<span class=sig-arg>self</span>)</span>
</h3>
Close this session, and any open channels that are tied to it.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="connect"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">connect</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>hostkey</span>=<span class=sig-default>None</span>,
<span class=sig-arg>username</span>=<span class=sig-default>''</span>,
<span class=sig-arg>password</span>=<span class=sig-default>None</span>,
<span class=sig-arg>pkey</span>=<span class=sig-default>None</span>)</span>
</h3>
<p>Negotiate an SSH2 session, and optionally verify the server's host
key and authenticate using a password or private key. This is a
shortcut for <a href="paramiko.Transport-class.html#start_client"
class="link"><code>start_client</code></a>, <a
href="paramiko.Transport-class.html#get_remote_server_key"
class="link"><code>get_remote_server_key</code></a>, and <a
href="paramiko.Transport-class.html#auth_password"
class="link"><code>Transport.auth_password</code></a> or <a
href="paramiko.Transport-class.html#auth_publickey"
class="link"><code>Transport.auth_publickey</code></a>. Use those
methods if you want more control.</p>
You can use this method immediately after creating a Transport to
negotiate encryption with a server. If it fails, an exception will be
thrown. On success, the method will return cleanly, and an encrypted
session exists. You may immediately call <a
href="paramiko.Transport-class.html#open_channel"
class="link"><code>open_channel</code></a> or <a
href="paramiko.Transport-class.html#open_session"
class="link"><code>open_session</code></a> to get a <a
href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a> object, which is used for data
transfer.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>hostkey</b></code> -
the host key expected from the server, or <code>None</code> if
you don't want to do host key verification.
<br /><i>
(type=<a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>)</i>
<dd><code><b>username</b></code> -
the username to authenticate as.
<br /><i>
(type=str)</i>
<dd><code><b>password</b></code> -
a password to use for authentication, if you want to use
password authentication; otherwise <code>None</code>.
<br /><i>
(type=str)</i>
<dd><code><b>pkey</b></code> -
a private key to use for authentication, if you want to use
private key authentication; otherwise <code>None</code>.
<br /><i>
(type=<a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>SSHException</b></code> -
if the SSH2 negotiation fails, the host key supplied by the
server is incorrect, or authentication fails.
</dl>
<p><b>Note:</b> If you fail to supply a password or private key, this method may
succeed, but a subsequent <a
href="paramiko.Transport-class.html#open_channel"
class="link"><code>open_channel</code></a> or <a
href="paramiko.Transport-class.html#open_session"
class="link"><code>open_session</code></a> call may fail because you
haven't authenticated yet.
</p>
<p><b>Since:</b> doduo
</p>
</dd></dl>
</td></tr></table>
<a name="get_exception"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">get_exception</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return any exception that happened during the last server request.
This can be used to fetch more specific error information after using
calls like <a href="paramiko.Transport-class.html#start_client"
class="link"><code>start_client</code></a>. The exception (if any) is
cleared after this call.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
an exception, or <code>None</code> if there is no stored
exception.
<br /><i>
(type=Exception)</i>
</dd>
</dl>
<p><b>Since:</b> 1.1
</p>
</dd></dl>
</td></tr></table>
<a name="get_hexdump"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">get_hexdump</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return <code>True</code> if the transport is currently logging hex
dumps of protocol traffic.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
<code>True</code> if hex dumps are being logged
<br /><i>
(type=bool)</i>
</dd>
</dl>
<p><b>Since:</b> 1.4
</p>
</dd></dl>
</td></tr></table>
<a name="get_log_channel"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">get_log_channel</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return the channel name used for this transport's logging.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
channel name.
<br /><i>
(type=str)</i>
</dd>
</dl>
<p><b>Since:</b> 1.2
</p>
</dd></dl>
</td></tr></table>
<a name="get_remote_server_key"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">get_remote_server_key</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return the host key of the server (in client mode).
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
public key of the remote server.
<br /><i>
(type=<a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>SSHException</b></code> -
if no session is currently active.
</dl>
<p><b>Note:</b> Previously this call returned a tuple of (key type, key string). You
can get the same effect by calling <a
href="../private/paramiko.PKey-class.html#get_name"
class="link"><code>PKey.get_name</code></a> for the key type, and
<code>str(key)</code> for the key string.
</p>
</dd></dl>
</td></tr></table>
<a name="get_security_options"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">get_security_options</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return a <a href="paramiko.SecurityOptions-class.html"
class="link"><code>SecurityOptions</code></a> object which can be used
to tweak the encryption algorithms this transport will permit, and the
order of preference for them.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
an object that can be used to change the preferred algorithms
for encryption, digest (hash), public key, and key exchange.
<br /><i>
(type=<a href="paramiko.SecurityOptions-class.html"
class="link"><code>SecurityOptions</code></a>)</i>
</dd>
</dl>
<p><b>Since:</b> ivysaur
</p>
</dd></dl>
</td></tr></table>
<a name="get_server_key"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">get_server_key</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return the active host key, in server mode. After negotiating with
the client, this method will return the negotiated host key. If only
one type of host key was set with <a
href="paramiko.Transport-class.html#add_server_key"
class="link"><code>add_server_key</code></a>, that's the only key that
will ever be returned. But in cases where you have set more than one
type of host key (for example, an RSA key and a DSS key), the key type
will be negotiated by the client, and this method will return the key
of the type agreed on. If the host key has not been negotiated yet,
<code>None</code> is returned. In client mode, the behavior is
undefined.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
host key of the type negotiated by the client, or
<code>None</code>.
<br /><i>
(type=<a href="../private/paramiko.PKey-class.html"
class="link"><code>PKey</code></a>)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="get_username"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">get_username</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return the username this connection is authenticated for. If the
session is not authenticated (or authentication failed), this method
returns <code>None</code>.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
username that was authenticated, or <code>None</code>.
<br /><i>
(type=string)</i>
</dd>
</dl>
<p><b>Since:</b> fearow
</p>
</dd></dl>
</td></tr></table>
<a name="global_request"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">global_request</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>kind</span>,
<span class=sig-arg>data</span>=<span class=sig-default>None</span>,
<span class=sig-arg>wait</span>=<span class=sig-default>True</span>)</span>
</h3>
Make a global request to the remote host. These are normally
extensions to the SSH2 protocol.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>kind</b></code> -
name of the request.
<br /><i>
(type=str)</i>
<dd><code><b>data</b></code> -
an optional tuple containing additional data to attach to the
request.
<br /><i>
(type=tuple)</i>
<dd><code><b>wait</b></code> -
<code>True</code> if this method should not return until a
response is received; <code>False</code> otherwise.
<br /><i>
(type=bool)</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
a <a href="paramiko.Message-class.html"
class="link"><code>Message</code></a> containing possible
additional data if the request was successful (or an empty <a
href="paramiko.Message-class.html"
class="link"><code>Message</code></a> if <code>wait</code> was
<code>False</code>); <code>None</code> if the request was
denied.
<br /><i>
(type=<a href="paramiko.Message-class.html"
class="link"><code>Message</code></a>)</i>
</dd>
</dl>
<p><b>Since:</b> fearow
</p>
</dd></dl>
</td></tr></table>
<a name="is_active"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">is_active</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return true if this session is active (open).
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
True if the session is still active (open); False if the
session is closed.
<br /><i>
(type=bool)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="is_authenticated"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">is_authenticated</span>(<span class=sig-arg>self</span>)</span>
</h3>
Return true if this session is active and authenticated.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
True if the session is still open and has been authenticated
successfully; False if authentication failed and/or the session
is closed.
<br /><i>
(type=bool)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="open_channel"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">open_channel</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>kind</span>,
<span class=sig-arg>dest_addr</span>=<span class=sig-default>None</span>,
<span class=sig-arg>src_addr</span>=<span class=sig-default>None</span>)</span>
</h3>
Request a new channel to the server. <a
href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>s are socket-like objects used for
the actual transfer of data across the session. You may only request a
channel after negotiating encryption (using <a
href="paramiko.Transport-class.html#connect"
class="link"><code>connect</code></a> or <a
href="paramiko.Transport-class.html#start_client"
class="link"><code>start_client</code></a>) and authenticating.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>kind</b></code> -
the kind of channel requested (usually
<code>"session"</code>,
<code>"forwarded-tcpip"</code> or
<code>"direct-tcpip"</code>).
<br /><i>
(type=str)</i>
<dd><code><b>dest_addr</b></code> -
the destination address of this port forwarding, if
<code>kind</code> is <code>"forwarded-tcpip"</code> or
<code>"direct-tcpip"</code> (ignored for other channel
types).
<br /><i>
(type=(str, int))</i>
<dd><code><b>src_addr</b></code> -
the source address of this port forwarding, if
<code>kind</code> is <code>"forwarded-tcpip"</code> or
<code>"direct-tcpip"</code>.
<br /><i>
(type=(str, int))</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
a new <a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a> on success, or
<code>None</code> if the request is rejected or the session ends
prematurely.
<br /><i>
(type=<a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="open_session"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">open_session</span>(<span class=sig-arg>self</span>)</span>
</h3>
Request a new channel to the server, of type
<code>"session"</code>. This is just an alias for
<code>open_channel('session')</code>.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
a new <a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a> on success, or
<code>None</code> if the request is rejected or the session ends
prematurely.
<br /><i>
(type=<a href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="open_sftp_client"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">open_sftp_client</span>(<span class=sig-arg>self</span>)</span>
</h3>
Create an SFTP client channel from an open transport. On success, an
SFTP session will be opened with the remote host, and a new SFTPClient
object will be returned.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
a new <a href="paramiko.SFTPClient-class.html"
class="link"><code>SFTPClient</code></a> object, referring to an
sftp session (channel) across this transport
<br /><i>
(type=<a href="paramiko.SFTPClient-class.html"
class="link"><code>SFTPClient</code></a>)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="renegotiate_keys"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">renegotiate_keys</span>(<span class=sig-arg>self</span>)</span>
</h3>
Force this session to switch to new keys. Normally this is done
automatically after the session hits a certain number of packets or
bytes sent or received, but this method gives you the option of forcing
new keys whenever you want. Negotiating new keys causes a pause in
traffic both ways as the two sides swap keys and do computations. This
method returns when the session has switched to new keys, or the
session has died mid-negotiation.
<dl><dt></dt><dd>
<dl><dt><b>Returns:</b></dt>
<dd>
True if the renegotiation was successful, and the link is
using new keys; False if the session dropped during
renegotiation.
<br /><i>
(type=bool)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="send_ignore"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">send_ignore</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>bytes</span>=<span class=sig-default>None</span>)</span>
</h3>
Send a junk packet across the encrypted link. This is sometimes used
to add "noise" to a connection to confuse would-be attackers.
It can also be used as a keep-alive for long lived connections
traversing firewalls.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>bytes</b></code> -
the number of random bytes to send in the payload of the
ignored packet -- defaults to a random number from 10 to 41.
<br /><i>
(type=int)</i>
</dd>
</dl>
<p><b>Since:</b> fearow
</p>
</dd></dl>
</td></tr></table>
<a name="set_hexdump"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">set_hexdump</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>hexdump</span>)</span>
</h3>
Turn on/off logging a hex dump of protocol traffic at DEBUG level in
the logs. Normally you would want this off (which is the default), but
if you are debugging something, it may be useful.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>hexdump</b></code> -
<code>True</code> to log protocol traffix (in hex) to the log;
<code>False</code> otherwise.
<br /><i>
(type=bool)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="set_keepalive"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">set_keepalive</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>interval</span>)</span>
</h3>
Turn on/off keepalive packets (default is off). If this is set,
after <code>interval</code> seconds without sending any data over the
connection, a "keepalive" packet will be sent (and ignored by
the remote host). This can be useful to keep connections alive over a
NAT, for example.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>interval</b></code> -
seconds to wait before sending a keepalive packet (or 0 to
disable keepalives).
<br /><i>
(type=int)</i>
</dd>
</dl>
<p><b>Since:</b> fearow
</p>
</dd></dl>
</td></tr></table>
<a name="set_log_channel"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">set_log_channel</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>name</span>)</span>
</h3>
Set the channel for this transport's logging. The default is
<code>"paramiko.transport"</code> but it can be set to
anything you want. (See the <code>logging</code> module for more info.)
SSH Channels will log to a sub-channel of the one specified.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>name</b></code> -
new channel name for logging.
<br /><i>
(type=str)</i>
</dd>
</dl>
<p><b>Since:</b> 1.1
</p>
</dd></dl>
</td></tr></table>
<a name="set_subsystem_handler"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">set_subsystem_handler</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>name</span>,
<span class=sig-arg>handler</span>,
<span class="sig-vararg">*larg</span>,
<span class="sig-kwarg">**kwarg</span>)</span>
</h3>
<p>Set the handler class for a subsystem in server mode. If a request
for this subsystem is made on an open ssh channel later, this handler
will be constructed and called -- see <a
href="paramiko.SubsystemHandler-class.html"
class="link"><code>SubsystemHandler</code></a> for more detailed
documentation.</p>
Any extra parameters (including keyword arguments) are saved and
passed to the <a href="paramiko.SubsystemHandler-class.html"
class="link"><code>SubsystemHandler</code></a> constructor later.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>name</b></code> -
name of the subsystem.
<br /><i>
(type=str)</i>
<dd><code><b>handler</b></code> -
subclass of <a href="paramiko.SubsystemHandler-class.html"
class="link"><code>SubsystemHandler</code></a> that handles this
subsystem.
<br /><i>
(type=class)</i>
</dd>
</dl>
</dd></dl>
</td></tr></table>
<a name="start_client"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">start_client</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>event</span>=<span class=sig-default>None</span>)</span>
</h3>
<p>Negotiate a new SSH2 session as a client. This is the first step
after creating a new <a href="paramiko.Transport-class.html"
class="link"><code>Transport</code></a>. A separate thread is created
for protocol negotiation.</p>
<p>If an event is passed in, this method returns immediately. When
negotiation is done (successful or not), the given <code>Event</code>
will be triggered. On failure, <a
href="paramiko.Transport-class.html#is_active"
class="link"><code>is_active</code></a> will return
<code>False</code>.</p>
<p>(Since 1.4) If <code>event</code> is <code>None</code>, this method
will not return until negotation is done. On success, the method
returns normally. Otherwise an SSHException is raised.</p>
After a successful negotiation, you will usually want to
authenticate, calling <a
href="paramiko.Transport-class.html#auth_password"
class="link"><code>auth_password</code></a> or <a
href="paramiko.Transport-class.html#auth_publickey"
class="link"><code>auth_publickey</code></a>.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>event</b></code> -
an event to trigger when negotiation is complete
(optional)
<br /><i>
(type=threading.Event)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>SSHException</b></code> -
if negotiation fails (and no <code>event</code> was passed
in)
</dl>
<p><b>Notes:</b>
<ul>
<li><a href="paramiko.Transport-class.html#connect"
class="link"><code>connect</code></a> is a simpler method for connecting
as a client.
</li>
<li>After calling this method (or <a
href="paramiko.Transport-class.html#start_server"
class="link"><code>start_server</code></a> or <a
href="paramiko.Transport-class.html#connect"
class="link"><code>connect</code></a>), you should no longer directly
read from or write to the original socket object.
</li>
</ul></p>
</dd></dl>
</td></tr></table>
<a name="start_server"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">start_server</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>event</span>=<span class=sig-default>None</span>,
<span class=sig-arg>server</span>=<span class=sig-default>None</span>)</span>
</h3>
<p>Negotiate a new SSH2 session as a server. This is the first step
after creating a new <a href="paramiko.Transport-class.html"
class="link"><code>Transport</code></a> and setting up your server host
key(s). A separate thread is created for protocol negotiation.</p>
<p>If an event is passed in, this method returns immediately. When
negotiation is done (successful or not), the given <code>Event</code>
will be triggered. On failure, <a
href="paramiko.Transport-class.html#is_active"
class="link"><code>is_active</code></a> will return
<code>False</code>.</p>
<p>(Since 1.4) If <code>event</code> is <code>None</code>, this method
will not return until negotation is done. On success, the method
returns normally. Otherwise an SSHException is raised.</p>
<p>After a successful negotiation, the client will need to
authenticate. Override the methods <a
href="../private/paramiko.ServerInterface-class.html#get_allowed_auths"
class="link"><code>get_allowed_auths</code></a>, <a
href="../private/paramiko.ServerInterface-class.html#check_auth_none"
class="link"><code>check_auth_none</code></a>, <a
href="../private/paramiko.ServerInterface-class.html#check_auth_password"
class="link"><code>check_auth_password</code></a>, and <a
href="../private/paramiko.ServerInterface-class.html#check_auth_publickey"
class="link"><code>check_auth_publickey</code></a> in the given
<code>server</code> object to control the authentication process.</p>
After a successful authentication, the client should request to open
a channel. Override <a
href="../private/paramiko.ServerInterface-class.html#check_channel_request"
class="link"><code>check_channel_request</code></a> in the given
<code>server</code> object to allow channels to be opened.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>event</b></code> -
an event to trigger when negotiation is complete.
<br /><i>
(type=threading.Event)</i>
<dd><code><b>server</b></code> -
an object used to perform authentication and create <a
href="paramiko.Channel-class.html"
class="link"><code>Channel</code></a>s.
<br /><i>
(type=<a href="../private/paramiko.ServerInterface-class.html"
class="link"><code>server.ServerInterface</code></a>)</i>
</dd>
</dl>
<dl><dt><b>Raises:</b></dt>
<dd><code><b>SSHException</b></code> -
if negotiation fails (and no <code>event</code> was passed
in)
</dl>
<p><b>Note:</b> After calling this method (or <a
href="paramiko.Transport-class.html#start_client"
class="link"><code>start_client</code></a> or <a
href="paramiko.Transport-class.html#connect"
class="link"><code>connect</code></a>), you should no longer directly
read from or write to the original socket object.
</p>
</dd></dl>
</td></tr></table>
<a name="use_compression"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">use_compression</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>compress</span>=<span class=sig-default>True</span>)</span>
</h3>
Turn on/off compression. This will only have an affect before
starting the transport (ie before calling <a
href="paramiko.Transport-class.html#connect"
class="link"><code>connect</code></a>, etc). By default, compression is
off since it negatively affects interactive sessions and is not fully
tested.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>compress</b></code> -
<code>True</code> to ask the remote client/server to compress
traffic; <code>False</code> to refuse compression
<br /><i>
(type=bool)</i>
</dd>
</dl>
<p><b>Since:</b> 1.5.2
</p>
</dd></dl>
</td></tr></table>
<a name="_activate_inbound"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_activate_inbound</span>(<span class=sig-arg>self</span>)</span>
</h3>
switch on newly negotiated encryption parameters for inbound
traffic
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_activate_outbound"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_activate_outbound</span>(<span class=sig-arg>self</span>)</span>
</h3>
switch on newly negotiated encryption parameters for outbound
traffic
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_compute_key"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_compute_key</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>id</span>,
<span class=sig-arg>nbytes</span>)</span>
</h3>
id is 'A' - 'F' for the various keys used by ssh
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_expect_packet"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_expect_packet</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>type</span>)</span>
</h3>
used by a kex object to register the next packet type it expects to
see
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_get_modulus_pack"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_get_modulus_pack</span>(<span class=sig-arg>self</span>)</span>
</h3>
used by KexGex to find primes for group exchange
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_send_kex_init"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_send_kex_init</span>(<span class=sig-arg>self</span>)</span>
</h3>
announce to the other side that we'd like to negotiate keys, and
what kind of key negotiation we support.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_send_user_message"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_send_user_message</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>data</span>)</span>
</h3>
send a message, but block if we're in key negotiation. this is used
for user-initiated requests.
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_set_K_H"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_set_K_H</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>k</span>,
<span class=sig-arg>h</span>)</span>
</h3>
used by a kex object to set the K (root key) and H (exchange
hash)
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<a name="_unlink_channel"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">_unlink_channel</span>(<span class=sig-arg>self</span>,
<span class=sig-arg>chanid</span>)</span>
</h3>
used by a Channel to remove itself from the active channel list
<dl><dt></dt><dd>
</dd></dl>
</td></tr></table>
<br />
<!-- =========== START OF STATIC METHOD DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
<th colspan="2">Static Method Details</th></tr>
</table>
<a name="load_server_moduli"></a>
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
<h3><span class="sig"><span class="sig-name">load_server_moduli</span>(<span class=sig-arg>filename</span>=<span class=sig-default>None</span>)</span>
</h3>
<p><i>(optional)</i> Load a file of prime moduli for use in doing
group-exchange key negotiation in server mode. It's a rather obscure
option and can be safely ignored.</p>
In server mode, the remote client may request
"group-exchange" key negotiation, which asks the server to
send a random prime number that fits certain criteria. These primes are
pretty difficult to compute, so they can't be generated on demand. But
many systems contain a file of suitable primes (usually named something
like <code>/etc/ssh/moduli</code>). If you call
<code>load_server_moduli</code> and it returns <code>True</code>, then
this file of primes has been loaded and we will support
"group-exchange" in server mode. Otherwise server mode will
just claim that it doesn't support that method of key negotiation.
<dl><dt></dt><dd>
<dl><dt><b>Parameters:</b></dt>
<dd><code><b>filename</b></code> -
optional path to the moduli file, if you happen to know that
it's not in a standard location.
<br /><i>
(type=str)</i>
</dd>
</dl>
<dl><dt><b>Returns:</b></dt>
<dd>
True if a moduli file was successfully loaded; False
otherwise.
<br /><i>
(type=bool)</i>
</dd>
</dl>
<p><b>Note:</b> This has no effect when used in client mode.
</p>
<p><b>Since:</b> doduo
</p>
</dd></dl>
</td></tr></table>
<br />
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
<th colspan="2">Class Variable Details</th></tr>
</table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_channel_handler_table"></a>
<h3>_channel_handler_table</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>dict</code>
</dd>
<span title="{96: <unbound method Channel._handle_eof>, 97: <unbound method Channel._handle_close>, 98: <unbound method Channel._handle_request>, 99: <unbound method Channel._request_success>, 100: <unbound method Channel._request_failed>, 93: <unbound method Channel._window_adjust>, 94: <unbound method Channel._feed>, 95: <unbound method Channel._feed_extended>}"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
{93: <unbound method Channel._window_adjust>,
94: <unbound method Channel._feed>,
95: <unbound method Channel._feed_extended>,
96: <unbound method Channel._handle_eof>,
97: <unbound method Channel._handle_close>,
98: <unbound method Channel._handle_request>,
99: <unbound method Channel._request_success>,
100: <unbound method Channel._request_failed>} </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_cipher_info"></a>
<h3>_cipher_info</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>dict</code>
</dd>
<span title="{'blowfish-cbc': {'block-size': 8, 'key-size': 16, 'class': <module 'Crypto.Cipher.Blowfish' from '/usr/lib/python2.4/site-packages/Crypto/Cipher/Blowfish.so'>, 'mode': 2}, '3des-cbc': {'block-size': 8, 'key-size': 24, 'class': <module 'Crypto.Cipher.DES3' from '/usr/lib/python2.4/site-packages/Crypto/Cipher/DES3.so'>, 'mode': 2}, 'aes256-cbc': {'block-size': 16, 'key-size': 32, 'class': <module 'Crypto.Cipher.AES' from '/usr/lib/python2.4/site-packages/Crypto/Cipher/AES.so'>, 'mode': 2}, 'aes128-cbc': {'block-size': 16, 'key-size': 16, 'class': <module 'Crypto.Cipher.AES' from '/usr/lib/py..."> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
{'3des-cbc': {'block-size': 8,
'class': <module 'Crypto.Cipher.DES3' from '/usr/lib/pyt<span class="variable-linewrap">\</span>
hon2.4/site-packages/Crypto/Cipher/DES3.so'>,
'key-size': 24,
'mode': 2},
'aes128-cbc': {'block-size': 16,
'class': <module 'Crypto.Cipher.AES' from '/usr/lib/py<span class="variable-linewrap">\</span>
thon2.4/site-packages/Crypto/Cipher/AES.so'>,
<span class="variable-ellipsis">...</span> </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_CLIENT_ID"></a>
<h3>_CLIENT_ID</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>str</code>
</dd>
<span title="'paramiko_1.5.2'"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
<span class="variable-quote">'</span>paramiko_1.5.2<span class="variable-quote">'</span> </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_compression_info"></a>
<h3>_compression_info</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>dict</code>
</dd>
<span title="{'none': (None, None), 'zlib': (<class 'paramiko.compress.ZlibCompressor'>, <class 'paramiko.compress.ZlibDecompressor'>), 'zlib@openssh.com': (<class 'paramiko.compress.ZlibCompressor'>, <class 'paramiko.compress.ZlibDecompressor'>)}"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
{'none': (None, None),
'zlib': (<class 'paramiko.compress.ZlibCompressor'>,
<class 'paramiko.compress.ZlibDecompressor'>),
'zlib@openssh.com': (<class 'paramiko.compress.ZlibCompressor'>,
<class 'paramiko.compress.ZlibDecompressor'>)} </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_handler_table"></a>
<h3>_handler_table</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>dict</code>
</dd>
<span title="{80: <function _parse_global_request at 0xb7b13fb4>, 81: <function _parse_request_success at 0xb7b1e02c>, 82: <function _parse_request_failure at 0xb7b1e064>, 20: <function _negotiate_keys at 0xb7b13dbc>, 21: <function _parse_newkeys at 0xb7b13f44>, 90: <function _parse_channel_open at 0xb7b1e10c>, 91: <function _parse_channel_open_success at 0xb7b1e09c>, 92: <function _parse_channel_open_failure at 0xb7b1e0d4>}"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
{20: <function _negotiate_keys at 0xb7b13dbc>,
21: <function _parse_newkeys at 0xb7b13f44>,
80: <function _parse_global_request at 0xb7b13fb4>,
81: <function _parse_request_success at 0xb7b1e02c>,
82: <function _parse_request_failure at 0xb7b1e064>,
90: <function _parse_channel_open at 0xb7b1e10c>,
91: <function _parse_channel_open_success at 0xb7b1e09c>,
92: <function _parse_channel_open_failure at 0xb7b1e0d4>} </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_kex_info"></a>
<h3>_kex_info</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>dict</code>
</dd>
<span title="{'diffie-hellman-group1-sha1': <class 'paramiko.kex_group1.KexGroup1'>, 'diffie-hellman-group-exchange-sha1': <class 'paramiko.kex_gex.KexGex'>}"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
{'diffie-hellman-group-exchange-sha1': <class 'paramiko.kex_gex.KexGex<span class="variable-linewrap">\</span>
'>,
'diffie-hellman-group1-sha1': <class 'paramiko.kex_group1.KexGroup1'><span class="variable-linewrap">\</span>
} </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_key_info"></a>
<h3>_key_info</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>dict</code>
</dd>
<span title="{'ssh-dss': <class 'paramiko.DSSKey'>, 'ssh-rsa': <class 'paramiko.RSAKey'>}"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
{'ssh-dss': <class 'paramiko.DSSKey'>, 'ssh-rsa': <class 'paramiko.RSA<span class="variable-linewrap">\</span>
Key'>} </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_mac_info"></a>
<h3>_mac_info</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>dict</code>
</dd>
<span title="{'hmac-sha1': {'class': <module 'Crypto.Hash.SHA' from '/usr/lib/python2.4/site-packages/Crypto/Hash/SHA.pyc'>, 'size': 20}, 'hmac-md5-96': {'class': <module 'Crypto.Hash.MD5' from '/usr/lib/python2.4/site-packages/Crypto/Hash/MD5.pyc'>, 'size': 12}, 'hmac-sha1-96': {'class': <module 'Crypto.Hash.SHA' from '/usr/lib/python2.4/site-packages/Crypto/Hash/SHA.pyc'>, 'size': 12}, 'hmac-md5': {'class': <module 'Crypto.Hash.MD5' from '/usr/lib/python2.4/site-packages/Crypto/Hash/MD5.pyc'>, 'size': 16}}"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
{'hmac-md5': {'class': <module 'Crypto.Hash.MD5' from '/usr/lib/python<span class="variable-linewrap">\</span>
2.4/site-packages/Crypto/Hash/MD5.pyc'>,
'size': 16},
'hmac-md5-96': {'class': <module 'Crypto.Hash.MD5' from '/usr/lib/pyt<span class="variable-linewrap">\</span>
hon2.4/site-packages/Crypto/Hash/MD5.pyc'>,
'size': 12},
'hmac-sha1': {'class': <module 'Crypto.Hash.SHA' from '/usr/lib/pytho<span class="variable-linewrap">\</span>
n2.4/site-packages/Crypto/Hash/SHA.pyc'>,
<span class="variable-ellipsis">...</span> </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_modulus_pack"></a>
<h3>_modulus_pack</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>NoneType</code>
</dd>
<span title="None"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
None </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_preferred_ciphers"></a>
<h3>_preferred_ciphers</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>tuple</code>
</dd>
<span title="('aes128-cbc', 'blowfish-cbc', 'aes256-cbc', '3des-cbc')"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
('aes128-cbc', 'blowfish-cbc', 'aes256-cbc', '3des-cbc') </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_preferred_compression"></a>
<h3>_preferred_compression</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>tuple</code>
</dd>
<span title="('none',)"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
('none',) </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_preferred_kex"></a>
<h3>_preferred_kex</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>tuple</code>
</dd>
<span title="('diffie-hellman-group1-sha1', 'diffie-hellman-group-exchange-sha1')"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
('diffie-hellman-group1-sha1', 'diffie-hellman-group-exchange-sha1') </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_preferred_keys"></a>
<h3>_preferred_keys</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>tuple</code>
</dd>
<span title="('ssh-rsa', 'ssh-dss')"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
('ssh-rsa', 'ssh-dss') </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_preferred_macs"></a>
<h3>_preferred_macs</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>tuple</code>
</dd>
<span title="('hmac-sha1', 'hmac-md5', 'hmac-sha1-96', 'hmac-md5-96')"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
('hmac-sha1', 'hmac-md5', 'hmac-sha1-96', 'hmac-md5-96') </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="_PROTO_ID"></a>
<h3>_PROTO_ID</h3>
<dl>
<dt></dt>
<dd>
<dl>
<dt><b>Type:</b></dt>
<dd>
<code>str</code>
</dd>
<span title="'2.0'"> <dt><b>Value:</b></dt>
<dd><table><tr><td>
<pre class="variable">
<span class="variable-quote">'</span>2.0<span class="variable-quote">'</span> </pre>
</td></tr></table></dd>
</span> </dl>
</dd>
</dl></td></tr></table>
<br />
<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
<tr valign="center">
<th class="navbar"> <a class="navbar" href="paramiko-module.html">Home</a> </th>
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left"><font size="-2">Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005</font></td>
<td align="right"><a href="http://epydoc.sourceforge.net"
><font size="-2">http://epydoc.sf.net</font></a></td>
</tr>
</table>
</body>
</html>
|