The running Linux VM vm1 has an IP address and sshd configured.
An administrator should log in over the normal network path.
Which method is appropriate?
A VM with networking and SSH can be accessed like a physical host by connecting to its guest IP address.
Detailed explanation
Incorrect. Destroying the VM would stop it rather than provide a login path.
Incorrect. A VM is not a container image for docker run.
Incorrect. The host's /proc is not a direct guest shell.
Correct. ssh user@address connects through the VM's configured network.
Try it yourself
An example you can run in a temporary verification environment.
ssh -G user@192.0.2.10 | head -n 5Expected result
接続せずに解決済みSSH設定を表示するKey points
- VM networking
- SSH login
- Difference from console
Notes
- Environment: OpenSSH client。文書用TEST-NET addressを使用
- Use a disposable VM or container when validating lifecycle commands.
- Exact command output can vary slightly by distribution and runtime version.
Foundation review
Identify the layer
SSH uses guest networking, whereas virsh console uses a virtual serial path that can remain useful during network failures.
Check the side effect
Verify reachability, firewall rules, and the SSH daemon without placing credentials in a command line.