GNOME
From OCF Help
Contents |
Transferring your files in Linux via GUI
Creating an SFTP mount in Linux (with Nautilus)
If you're using one of the various Unix-like operating systems with the GNOME desktop environment, such as Linux, you probably have an SFTP-integrated file browser (Nautilus) that will let you create a mount to your OCF files that behaves more or less like an ordinary folder. This will give you a GUI solution to managing your OCF files through file browser functionality like the ability to drag-and-drop files between the local machine and the SFTP server.
Here are steps to how it's done in Linux (using Debian and Ubuntu as examples):
- Find the File Browser utility and open it. It's usually found under Applications/System Tools.
- Choose File->Connect to Server...
- Alternative: You can skip steps 1 and 2 if your Linux distribution has Connect to Server... under Places in the menu bar. This is true in such flavors as Ubuntu and Red Hat.
- Input the settings obtained from our SSH documentation.
- Server: ocf.berkeley.edu
- Port: 22
- Folder: Type your home directory path for this. It follows this format: /home/<first letter of username>/<first 2 letters of username>/<yourusername>
- Example: /home/a/ao/aoaks
- User Name: <yourusername>
- The share will now appear in your Computer folder, as well as in the Places list. To connect to it, just double-click it.
- If you haven't connected to the OCF server with this client before, you will be prompted to check the identity of the remote host. You can assume it's the correct host and click Log In Anyway.
- To be more secure: You can actually check the displayed key against the OCF's published SSH host keys page. It doesn't take that long and you only have to do it once. The reason for this is because there is no way for the SSH client to determine if the host you are connecting to is actually the host it claims to be. In this case, the host key page gives the following entry for ocf.berkeley.edu:
- SSH 2 RSA fingerprint: 56:8e:7c:29:f9:c9:94:8f:39:76:37:2f:c6:37:bf:e2. Check the page, as the key fingerprint may have changed since the time of this writing. If the fingerprints match, go ahead and continue and click "Log in Anyway" to save the key so you don't have to check later.
- To be more secure: You can actually check the displayed key against the OCF's published SSH host keys page. It doesn't take that long and you only have to do it once. The reason for this is because there is no way for the SSH client to determine if the host you are connecting to is actually the host it claims to be. In this case, the host key page gives the following entry for ocf.berkeley.edu:
- Enter your password when when prompted.
- You are now logged-in and may transfer files.
- When you are finished, to unmount the network share, go to the Computer location, right-click the share, and choose Unmount Volume.
Quick Connect
If instead of actually making a network mount, you just want to quickly access the SFTP share, you can bring up the Location field with "Ctrl+L" and enter the following:
ssh://<username>@ocf.berkeley.edu/<homedirectory>
where <username> is your username and <homedirectory> is the path to your home directory as given above.
You will still have to go through the normal authentication procedure, but you can save a couple clicks this way.
Transferring your files in Linux via command line
Using GNOME Terminal
Computers which run the Unix operating system, like the ones in the OCF, are sometimes called command-line oriented. This means you get the computer to do things by typing the name of the program you want to run to a system prompt. The default prompt on machines in the OCF looks like this:
apocalypse [100]
Note: You SHOULDN'T type "apocalypse [100]"! That is your PROMPT, as in, something that computer shows you to PROMPT you for another command. In addition, apocalypse [100] is an example, your prompt is not always the same thing. The first word is the name of the machine you're logged into; the number is the number of the command you're about to type, which is useful for repeating a command. Some Unix other systems are set up to use "%" as their prompt; the prompt on the OCF acts the same, but gives you a bit more information.
Detailed Instructions
Find the Terminal utility and open it. It's usually found under Applications/Accessories.

Launch the Terminal program. Login to OCF using the command "ssh username@ocf.berkeley.edu". Just replace "username" with your actual username.

If this is the first time you have connected to ocf using this client, you will be prompted to check the identity of the remote host. At this point, there is no way for the SSH client to determine if the host you are connecting to is actually the host it claims to be. It will provide you with a key fingerprint and asks you if you want to continue. Most people will just click Yes and assume it to be the correct host. The OCF publishes the SSH host keys of all of its systems, so you really should check. It doesn't take that long and you only have to do it once. In this case, the host key page gives the following entry for ocf.berkeley.edu:
- SSH 2 RSA fingerprint: 56:8e:7c:29:f9:c9:94:8f:39:76:37:2f:c6:37:bf:e2
- NOTE: this is the key at the time of this writing. Please check against the SSH host keys page, as the keys may change.

If this is the first time you have logged in to your OCF shell account, you will see the new user information. You should probably read this information, but if you are in a hurry, you can just page through it until you get to the end. At this point you will be asked whether or not to make your files world-readable. If you aren't sure what to pick, go with unreadable and enter 'u'.

Once you get a prompt like the one below (or something similar like "apocalypse [1] "), you are now logged-in and may issue commands.

If you fail to login, then you may have...
- Mistyped your password.
- Forgot to put your "username@" before ocf.berkeley.edu at the command line. Without specifying a username, GNOME Terminal will automatically use the name of your local account, which may not correspond to your OCF username.
