1
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 1 year has passed since last update.

株式会社クラスアクトAdvent Calendar 2022

Day 2

virt-managerでリモートホストとSSH接続する際に鍵ファイルを使う方法

Posted at

Linux上の仮想マシンをGUIで管理するのに便利なvirt-managerですが、リモートホストとSSH接続で鍵認証を使う際にGUIでは設定ができません。
そんな時はコマンドラインから鍵ファイルを指定すると、うまく接続&登録できるようです。

例)
アカウント名:ubuntu
リモートホストのIP:192.168.0.1
鍵ファイル:/home/ubuntu/.ssh/id_ed25519

$ virt-manager -c 'qemu+ssh://ubuntu@192.168.0.1/system?keyfile=/home/ubuntu/.ssh/id_ed25519'
1
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
1
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?