写部署脚本时,难免涉及到一些远程执行命令或者传输文件。 之前一直使用 "sh" 库,调用sh.ssh远程执行一些命令,sh.scp传输文件,但是实际使用中还是比较麻烦的,光是模拟用户登陆这一点,还需要单独定义方法模拟输入。 感受一下: 来自 "官方文档" 后来发现 "paramiko" 库更加优雅、
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083522
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083504
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083484
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083463
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083441
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083422
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083391
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083368
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083352
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083334
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083312
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083288
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083277
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083257
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083233
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083208
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083189
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083169
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083147
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083124
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083103
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083080
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083053
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083026
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082968
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082946
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082914
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082895
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082862
http://pic.cnhubei.com/space.php?uid=&do=album&id=1082835
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082579
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082556
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082543
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082519
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082505
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082481
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082463
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082427
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082402
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082382
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082359
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082333
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082316
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082288
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082257
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082241
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082223
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082208
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082182
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082156
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082127
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082097
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082074
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082054
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082037
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082016
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082001
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081985
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081964
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081947
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081933
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081919
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081902
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081879
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081846
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081820
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081802
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081784
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081770
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081747
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081730
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081709
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081685
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081536
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081509
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081488
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081471
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081445
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081426
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081405
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081391
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081364
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081345
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081310
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081284
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081263
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081248
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081215
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081189
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081158
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081133
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081110
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081087
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081069
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081044
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081031
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081018
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080995
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080979
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080955
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080936
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080908
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080887
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080864
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080843
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080822
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080808
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080617
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080594
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080577
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080566
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080542
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080525
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080513
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080486
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080467
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080451
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080434
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080417
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080403
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080387
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080372
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080358
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080342
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080325
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080309
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080292
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080276
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084613
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084582
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084555
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084538
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084520
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084496
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084476
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084452
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084428
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084405
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084386
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084361
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084338
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084324
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084288
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084268
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084249
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084228
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084205
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084185
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084168
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084152
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084127
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084111
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084092
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084072
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084058
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084035
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1084013
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083998
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083977
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083957
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083940
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083926
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083905
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083881
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083851
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083823
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083809
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083787
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083765
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083750
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083717
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083701
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083674
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083655
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083643
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083631
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083615
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083605
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083595
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083578
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083563
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083546
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083531
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083518
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083505
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083483
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083462
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083442
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083426
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083409
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083384
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083367
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083346
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083331
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083308
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083285
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083265
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083245
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083223
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083202
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083180
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083166
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083150
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083134
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083117
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083101
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083084
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083060
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083040
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083022
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1083003
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082988
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082970
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082955
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082932
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082912
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082897
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082872
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082854
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082839
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082586
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082570
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082554
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082542
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082518
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082506
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082487
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082466
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082449
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082428
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082410
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082388
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082365
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082348
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082330
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082313
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082284
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082261
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082246
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082226
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082213
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082190
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082174
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082155
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082133
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082117
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082099
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082082
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082064
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082051
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082024
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1082004
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081995
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081972
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081957
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081944
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081931
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081921
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081903
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081888
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081875
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081843
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081831
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081809
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081791
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081773
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081759
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081745
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081731
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081705
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081689
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081530
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081508
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081487
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081470
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081455
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081427
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081416
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081398
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081369
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081355
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081330
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081309
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081281
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081262
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081245
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081216
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081198
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081171
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081144
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081111
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081083
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081051
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081035
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1081015
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080990
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080961
http://pic.cnhubei.com/space.php?uid=4593&do=album&id=1080941