This is a tutorial showing how I logged into a course specific account on ieng6.
First, I went to the VS Code website and downloaded the version that correlated to my computer (i.e Windows, MacOS, Linux).
Once it was installed, I opened VS Code and my window looked like this:
After I successfully downloaded VS Code, in order to connect remotely, since I am a Windows user, I downloaded OpenSSH and followed the instructions on the linked attached.
Once OpenSSH was successfully downloaded, I went back to VS Code and I opened a new terminal, which I did by going to the toolbar in VS Code and pressing terminal, then pressing new terminal (Refer to the picture below).
After I opened the new terminal, I typed in the following command:
ssh cs15lsp22agx@ieng6.ucsd.edu
and then it asked for my password, but it did not show me my password (which I was confused with at first), once I figured it was normal for security purposes, it showed me my last login, my ip address, and I got a message that told me I was logged in and showed me my cluster status (refer to picture below).
After running a few commands, I created a file called WhereAmI.java to move it over to SSH. WhereAm.java looks like this:
class WhereAmI {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
System.out.println(System.getProperty("user.name"));
System.out.println(System.getProperty("user.home"));
System.out.println(System.getProperty("user.dir"));
}
}
scp WhereAmI.java cs15lsp22agx@ieng6.ucsd.edu:~/
which then asked me for my password again.
ssh-keygen
Then, I typed in y and pressed enter twice so that I did not make a passphrase, which then generated the files public key and private key and I got this output:
ssh cs15lsp22zz@ieng6.ucsd.edu
Enter Password:
now on server
mkdir .ssh
logout using ctrl d or typing in exit
back on client
scp /Users/molmedo/.ssh/id_rsa.pub cs15lsp22agx@ieng6.ucsd.edu:~/.ssh/authorized_keys
scp WhereAmI.java cs15lsp22agx@ieng6.ucsd.edu:~/;
ssh cs15lsp22agx@ieng6.ucsd.edu "javac WhereAmI.java; java WhereAmI"