Section outline
-
Sometimes, you'd want to work from your personal computer, but still have access to the university's Linux environment.
For example, most programming courses require your homework assignments to work correctly on the university's computers.
Or, you might want to make changes to files you've stored on your university account.
In this unit we'll see how to do all these and more.Relevant links:
Unit playlist
-------------------
In this video we'll see how to use SSH to connect remotely to your CSE account.
To connect remotely, follow these steps:
Getting ready
- Because we use a variety of tools and operating systems, these instructions may change.
If something doesn't work, check HUJI's CS Wiki and follow the instructions there.
- You need a HUJI CSE account to connect remotely, so open an account.
- If you use Windows, you will need to install OpenSSH. Note that graphical applications will not work.
- If you use MacOS, in order to open graphical applications you will need to install Xquartz.
Connecting
- Open the commandline and write: ssh -CXJ |username|@bava.cs.huji.ac.il |username|@river
Where |username| is your HUJI CSE username.
- You will be required to use two passwords:
1. First, you will be asked to use a new One Time Password, so generate a new one.
2. Second, you will need to use your regular HUJI CSE password.
You will not be able to see the password when you enter it; this is done to maintain your privacy. -
In this video we'll see how to handle common errors when connecting to remote computers. In this video we'll see how to handle some common errors that you might face when trying to connect to HUJI CSE's computers.
- For errors like "The authenticity of host '...' can't be established. ... Are you sure you want to continue connecting (yes/no)?", simply answer "yes".
- For errors like
"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
...
Add correct host key in |some-path|/known_hosts to get rid of this message."
Simply delete the file "|some-path|/known_hosts", for example by running: "rm |some-path|/known_hosts" -
We will see how to transfer files between the university's computers and our personal computer using FTP (possible with all operating systems).
If the method presented in the video does not work, you can use the following command:
"sftp -o ProxyJump=|username|@bava.cs.huji.ac.il |username|@river"
Windows users: note that 'pwd' and '!ls' will not work for you, but instead of '!ls' you can use '!dir'.Optional reading material:
Connecting from outside using FTP - a tutorial -
This tutorial shows how to use a program called "WinSCP" to transfer files on Windows.
Make sure you follow the section written in "Using jump server".
If you cannot see the windows shown in the tutorial, you can click in the top bar on "Session" and then on "New session". -
We'll learn about the 'wget' command, which will allow us to download files from the internet.
Optional reading material:
wget tutorial -
When working from home and you're missing the aquarium, it's possible to remotely connect to the university's computers. Do you know how to do so?
-
Meme for finishing this unit Page
Once you finish this unit, you'll be able to open this page and see a meme!
-