{
"video": "RW-NTiemvFo",
"seconds": 145,
"title": "Connect to Oracle Cloud VM (Windows)",
"prior": "Create Compute Instance",
"transcript": "In this video, we'll see how to connect to a virtual machine in the Oracle Cloud from the Windows operating system. I'll assume you already have a virtual machine running. If not, check out the videos listed above.\r\nI'll start by being sure that I have access to the private key file I downloaded while configuring the virtual machine.\r\n\r\nNow, I'll launch power shell by typing \"power shell\" in the Windows search bar and clicking the power shell option when it's available.\r\n\r\nI can see that my current working directory is the home directory for my Windows user account. That's good, because to make accessing my VM easy, I'll want to put that private key file in the expected location. It belongs in a folder called .ssh in my home directory. Let's see if that folder is already here by trying to make it the active directory.\r\n\r\nI'll type \"cd .ssh.\"\r\n\r\nI got an error message telling me that the directory does not exist. I'll create it by typing \"mk dir dot ssh.\"\r\n\r\nNow, I'll start Windows Explorer by typing, \"start .ssh\" so I can copy my private key file to the new directory. Even though I don't really need the public key file to be here, I'll keep them together by copying them both.\r\n\r\nI should be able to see these files in power shell now, so I'll ask for a directory listing of the .ssh folder. It looks as though they are here. \r\n\r\nWhen I try to connect to the remote VM, the secure shell client will automatically try to use this private key for authentication if it is in the .ssh folder and named i d, _, r s a, so I'll rename it now.\r\n\r\nNow I'll run the ssh client by typing \"ssh\" followed by the username, which is \"opc.\" Then I'll type the, \"@,\" sign followed by the public IP address of my VM and press \"enter.\"\r\n\r\nThe first time I connect to a new machine, the ssh client prompts me to be sure I want to connect. I'll type y e s and press \"enter.\"\r\n\r\nIt looks as though I'm connected. Here's the machine name I chose when I configured the machine. I'll check my current working directory. Sure enough, I'm in the home folder of the opc user. To end my remote session with the VM, I'll type \"exit,\" and press enter.\r\n\r\nThe connection is closed and I'm back at my power shell prompt on my local computer.\r\n",
"code": [
{
"summary": "Commands",
"detail": "powershell\r\n\r\ncd .ssh\r\n\r\nmkdir .ssh\r\n\r\nstart .ssh\r\n\r\ndir .ssh\r\n\r\nid_rsa\r\n\r\nssh opc@pub.ip.add.res\r\n\r\nyes\r\n\r\npwd\r\n\r\nexit"
}
]
}