Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
ssh cs15lfa22zz@ieng6.ucsd.edu
cs15lfa22zz
with your username from your courseThe authenticity of host 'ieng6.ucsd.edu (128.54.70.227)' can't be established.
RSA key fingerprint is SHA256:ksruYwhnYH+sySHnHAtLUHngrPEyZTDl/1x99wUQcec.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
ls
cd ~
-lat
cat /home/linux/ieng6/cs15lfa22/public/hello.txt
ls -a
exit
in the terminalls
cd ~
WhereAmI.java
with this code:
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"));
}
}
javac WhereAmI.java
java WhereAmI
scp WhereAmI.java cs15lfa22zz@ieng6.ucsd.edu:~/
javac WhereAmI.java
java WhereAmI
ssh-keygen
to the terminal, and press enter not add any passphrase. You will know it finished when there is a randomart image at the end
ssh cs15lfa22zz@ieng6.ucsd.edu
mkdir .ssh
scp /Users/joe/.ssh/id_rsa.pub cs15lfa22@ieng6.ucsd.edu:~/.ssh/authorized_keys
ssh cs15lfa22@ieng6.ucsd.edu "ls"
cp WhereAmI.java OtherMain.java; javac OtherMain.java; java WhereAmI