This tutorial contains instructions on how to download VScode, access a remote server, and test some commands on the remote server.
To begin, visit the download link to download and install the current release. Click the correct installer for your OS and follow the installer’s instructions.
Opening a new window should look similar to this.
Windows users will need to download Git in order to use the Git Bash terminal.
Run the installer with default settings, then go back to VS Code and open the command palette using Ctrl + Shift + P
. Search for “select default profile”, select Git Bash, and then open a new terminal using Ctrl + `
. The new terminal should be a bash terminal that looks similar to the following.
With the bash terminal open, type the following into your terminal, omitting the $
. Replace xyz
with the unique characters pertaining to your user account.
$ ssh cs15lwi23xyz@ieng6.ucsd.edu
As this is your first time accessing the remote server, it will ask if you wish to continue connecting. Type yes
and it will return a prompt for your password. Type in your account’s password and hit enter/return.
When you are successfully logged into the remote server, the terminal should look like this.
Now you can test out some basic Unix commands on the remote computer.
ls
will list the files in the current directorypwd
will print the current working directorycd
plus ..
or the name of a directory will change the current directorymkdir
will make a new directorycp
will copy a filerm
will remove a fileexit
will exit your connection to the remote serverIn the example above, we used mkdir
to make a new directory called hello
. Then, we moved into that directory using cd
. Using ls
while in hello
yielded nothing as the directory was just created.
Later, after using cd ..
to get back to the original directory, adding -lat
as a modifier to ls
let us see hidden files and their timestamps. Lastly, we used rm
to remove the text file we copied earlier.
When you are done testing out commands and combinations, use exit
to disconnect from the server.