Find the UUID and MoRef ID of a VM using PowerCLI


Get-VM VM_Name | %{(Get-View $_.Id).config.uuid}

MoRef ID

Get-VM VM_name | Get-View
Get-VM VM_name | Select Name, ID

Close an unresponsive ssh session with ~.

SSH escape sequences:

~. – terminate connection (and any multiplexed sessions)
~B – send a BREAK to the remote system
~C – open a command line
~R – Request rekey (SSH protocol 2 only)
~^Z – suspend ssh
~# – list forwarded connections
~& – background ssh (when waiting for connections to terminate)
~? – this message
~~ – send the escape character by typing it twice