LoginSignup
0
0

More than 1 year has passed since last update.

paramikoを使うためのscpモジュールをインストールする

Posted at

前の記事でparamikoを使用した複数ホストに対して実行命令を出す記事を書きました.
ですが,おそらくモジュールのインストールが足りないと思いますので,追加で記載します.

scpモジュールインストール

$ sudo apt-get update
$ sudo apt-get install openssh-clients

#おそらくここまでのコマンドでインストールが完了するはずですが
#なぜか私はエラーが発生したので,同様にエラー吐かれた人は以下のコマンドを実行

$ sudo apt --fix-broken install
$ sudo apt-get install openssh-clients

インストールできかた確認するには,python上でimportしてみればOKです.

$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scp
>>>

エラー出てないので成功です!
これでparamikoは使えます.

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