前提
Ubuntuから複数VyOSのに対して、同時にconfigureの設定をしたいです。
これを実現するために、parallel-sshを使用しました。
しかし、ログインの段階でエラーが発生しました。
もし、parallel-sshのログインエラーの原因をご存じの方がいらっしゃいましたら、ご教授いただけますと幸いです。
よろしくお願いいたします。
実現したいこと
Ubuntu20.04からVyOS1.3にparallel-sshでログインしてコマンドを実行する。
発生している問題・エラーメッセージ
client@XXXXX:~/$ parallel-ssh -H 192.168.0.5 -i hostname [1] 18:48:42 [FAILURE] 192.168.0.5 Exited with error code 255 Stderr: Welcome to VyOS pssh error: SSH requested a password. Please create SSH keys or use the -A option to provide a password. client@192.168.10.5: Permission denied(Publickey,password)
試したこと
前提条件となる鍵認証を以下の手順で実施したところ、パスワードなしでログインができるにもかかわらず、同様のエラーが発生。
Step1. Ubuntuでssh-keygenで鍵ペアを作成
Step2. UbuntuからVyOSに公開鍵 id_rsa.pubを送信
Step3. VyOSで公開鍵を移動
Step4. その後、Ubuntuから鍵認証のログインをパスワードなしでできることを確認
(Step1) client@XXXXX:~/$ ssh-keygen ※パスワード入力無しで鍵を生成 (Step2) client@XXXXX:~/$ scp /home/controller/.ssh/.id_rsa.pub Testvyos1@192.168.0.5:/home/Testvyos1/.ssh Testvyos1:testVR1:~$ mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys (Step3) Testvyos1:testVR1:~$ mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys (Step4) client@XXXXX:~/$ ssh Testvyos1@192.168.10.5 Welcome to VyOS Linux testVR1 4.19.148-amd64-vyos #1 SMP Fri Oct 9 17:19:29:UTC 2020 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are describe in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Testvyos1@testVR2:~$
また、パスワード有りのログインを行ったところ、これも失敗
client@XXXXX:~/$ parallel-ssh -A -H 192.168.0.5 -i hostname Warning: do not enter your password if anyone else has superuser privileges or access to your account. Password: (Testvyos1のパスワードを入力) [1] 18:48:42 [FAILURE] 192.168.0.5 Exited with error code 255 Stderr: Welcome to VyOS client@192.168.10.5: Permission denied(Publickey,password)
補足情報(FW/ツールのバージョンなど)
クライアント:Ubuntu20.04
ホスト:VyOS1.3(Virtualbox)
参考サイト
https://www.server-world.info/query?os=Ubuntu_20.04&p=ssh&f=10
https://www.server-world.info/query?os=Ubuntu_20.04&p=ssh&f=4
あなたの回答
tips
プレビュー