0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sshtunnel で Paramiko のエラーが出た場合の対処法

Posted at

Python3 で sshtunnel を使って接続する場合、以下のようなエラーが出ることがあります。

ERROR   | Unknown exception: p must be exactly 1024, 2048, or 3072 bits long

手元の環境は以下になります。

  • Ubuntu 16.04 LTS
  • Python 3.6.4 :: Anaconda, Inc.
  • sshtunnel==0.1.3 、paramiko==2.4.1

このような場合は paramiko のバージョンを一旦下げると接続できることがあります。

pip install paramiko==1.18.5
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?