![]() ![]()
(Note that when you delete something on the server, it is gone forever. ![]() You can also right click on files and folders to rename then or delete them. To create a new file or folder, find the place in the directory tree of the Explorer sidebar, right click where you want the file/folder to be, and click New File, or New Folder. From there, any changes you make will be saved directly to the file on the server when you Save the file (File > Save, or Ctrl + S). To open a file, find it in the Explorer sidebar on the left and click on it. Once you are connected and have opened your home directory, opening and editing your files is pretty straight forward. Opening, Editing, Creating and Uploading Files You should now see all your files in the sidebar on the left. The first time you open a new folder, you will be asked it you trust the authors of the files in the folder. If it’s not, enter the path above (replacing with your netid). ![]() By default this should be your home directory: /cas/student/ After connecting to your VM, got to File > Open Folder…Ī prompt will ask you to select a folder to open on the remote server. You may notice that you don’t see any files yet. If all goes right, you should now be connected to your chosen CASLab Linux VM. (Note: this is the only prompt you will get after the first time connecting.) Visual studio code ssh specify user password#Input your CASLab password and press Enter. Select “Continue.”įinally, you will be asked to input your password. The next prompt will ask you to accept the SSH fingerprint. You will be asked to select the platform of the remote host. In the Remote Explorer sidebar, right click on your newly created target for your chosen Linux VM and click “Connect to Host in Current Window” (or “Connect to Host in New Window” – it doesn’t really matter). (Note that your files are the same across all VMs.) Connecting to an SSH Target You may repeat these steps for more than one Linux VM should you need to use another one. You should now see your SSH Target in the sidebar. Where is your netid and is whatever Linux VM you chose. ![]() The next asks for the “SSH Connection Command.” Here you will type: ssh. (Note actual path will differ by platform.) In most cases, you should pick the first option is presents. If this is your first time using the extension, you will be asked to choose the location of the configuration file. Hover over where it “SSH TARGETS” and click the “+” button. In VS Code, click on the new Remote – SSH icon in the sidebar. Instead, you will have to select a VM to use from the following list:įor the images in the rest of this guide, we will use, but you should pick your own VM so that everyone isn’t using the same one. Note: Unlike in other tutorials, you won’t be able to use, which is the VM that lets you select a particular VM. Find “Remote – SSH” by Microsoft from the list and click “Install.”Īfter installing the Remote – SSH extension, you should see a new icon appear on the sidebar: Setting up a SSH Targetįirst, we have to set up a new SSH target for one of the Linux VMs. Go to the Extensions tab on the left sidebar and search for “ssh” in the text box. Visual studio code ssh specify user install#Installing Remote – SSH Extensionīefore you can connect to CASLab Linux with VS Code, you must first install the Remote – SSH extension. Visual studio code ssh specify user how to#This guide will show you how to set it up.ĭownload Visual Studio Code. You can use to connect to CASLab Linux and create/open/edit files, as well as run commands through the built in terminal. Microsoft’s Visual Studio Code is a popular cross-platform code editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |