TWiki
>
Main Web
>
TWikiUsers
>
YiLee
>
AccessingCourseAccount
(2018-05-24,
YiLee
)
(raw view)
E
dit
A
ttach
---+ Accessing Course Account from ISA Office Macmini This page describes some ways to connect to the course account from the ISA office Macmini. ---+++!! Fill this out to make these instructions use your !WatIAM ID and course: <script> function f() { var courseaccount = document.getElementById('courseaccount').value.trim().toLowerCase(); if(courseaccount) { var csNNNs = document.getElementsByClassName("csNNN"); for(var i = 0; i < csNNNs.length; i++) { csNNNs[i].textContent = courseaccount; } } var userid = document.getElementById('userid').value.trim().toLowerCase(); if(userid) { var userIdElements= document.getElementsByClassName("yourQuestID"); for(var i = 0; i < userIdElements.length; i++) { userIdElements[i].textContent = userid; } } } </script> <form onsubmit="f(); return false;">Your !WatIAM ID (ex. =yc2lee=): <input type="text" id="userid" value="%USERNAME%"><br/>Course Account (ex. =cs115=): <input type="text" id="courseaccount" value=""> <input type="submit" value="Submit"> </form> %TOC% ---++ Connect using Samba (smb) Samba lets you mount the course account as a drive/folder so that you can work with the course's files in a Finder window. Samba can sometimes be glitchy (ex. random disconnects or it takes forever to connect). CSCF is unable to isolate the cause and fix it at this time, due to networking being outside their control and Apple having their own custom Samba setup. SSHFS, an alternative to Samba, is described below. *Getting Access:* You will be given access automatically in your first week of work. If you don't have access, please ask your CSCF Point of Contact or your ISC (your ISC will then contact CSCF, because only CSCF staff can give Samba access). *Step 1:* Click on the desktop or the Finder icon in the Dock (bar at the bottom of the screen). Then in the Finder menu bar at the top of the screen, click on Go and choose "Connect to Server..." *Step 2:* Use Server Address: =smb://smb-files.student.cs.uwaterloo.ca/<span class="csNNN">csNNN</span>= You can click the '+' button to save the address. Click Connect. *Step 3:* For Name, enter your !WatIAM ID (=<span class="yourQuestID">yourQuestID</span>=) and use your student.cs password [[https://www.student.cs.uwaterloo.ca/password/][(reset password if needed)]]. Click Connect. ---++ Connect using SSH in a Terminal You can work with course account files by typing commands in a Terminal. *Getting Access:* Find someone who already has access to the course account, like your ISC or fellow ISA. They can add you by editing the =/u/<span class="csNNN">csNNN</span>/.rhosts= file in the course account. The next time the clock's minute hand hits 4, the =/u/<span class="csNNN">csNNN</span>/.ssh/authorized_keys= file will be updated to include you, and then you can SSH into the course account. Instead of waiting, you can edit the =/u/<span class="csNNN">csNNN</span>/.ssh/authorized_keys= file directly by adding your own =/u/<span class="yourQuestID">yourQuestID</span>/.ssh/id_rsa.pub= key to the top of the =authorized_keys= file. *Step 1:* SSH into your own account first. Open the Terminal and run: =ssh <span class="yourQuestID">yourQuestID</span>@linux.student.cs.uwaterloo.ca= For security, nothing will be displayed as you type in your password. [[https://www.student.cs.uwaterloo.ca/password/][Reset your password if needed.]] *Step 2:* Once you're in your own account, run: =ssh <span class="csNNN">csNNN</span>@linux.student.cs= If you've created a passphrase, you'll be asked to type it in. If you're asked if you want to continue connecting, enter "yes". ---++ Connect using SSHFS SSHFS mounts the course account as a drive/folder like Samba, but it uses SSH. You will be able to work with the course's files in a Finder window. *Getting Access:* You just need to be able to SSH into the course account. See previous section. The SSHFS program is automatically installed on ISA Macminis. *Step 1*: Open a Terminal and run these 3 commands. You don't need to SSH into anything, just run them when the Terminal opens. The second command will ask for your password because it connects to your own account. =mkdir -p ~/<span class="yourQuestID">yourQuestID</span> ~/<span class="csNNN">csNNN</span>= <br/> =sshfs <span class="yourQuestID">yourQuestID</span>@linux.student.cs.uwaterloo.ca: ~/<span class="yourQuestID">yourQuestID</span> -o volname=<span class="yourQuestID">yourQuestID</span>-ssh= <br/> =sshfs <span class="csNNN">csNNN</span>@linux.student.cs.uwaterloo.ca: ~/<span class="csNNN">csNNN</span> -o !IdentityFile=~/<span class="yourQuestID">yourQuestID</span>/.ssh/id_rsa -o volname=<span class="csNNN">csNNN</span>-ssh= <br/> _Explanation:_ 1 The first command creates folders where your account and the course account will be mounted. Your files and the course's files will show up in these folders. The =-p= means "do nothing if the folders already exist." 1 The second command mounts your own account to the folder =~/<span class="yourQuestID">yourQuestID</span>=. After connecting, an icon may appear on your desktop with the name =<span class="yourQuestID">yourQuestID</span>-ssh= which you can double-click on to see your own files. 1 The third command is similar to the second command, but it mounts the course account instead of your own. It will use your SSH key to access the course account. *Step 2*: Your account and the course account should show up as drives on the Desktop. If not, they should show up in your home folder (on Finder menu bar, click Go then Home). You can disconnect from the accounts by right-clicking the drive/folder, and choosing Eject. *Step 3 (optional):* To save time, you can copy-paste the 3 commands into a file (for example, with name =sshfs.sh=). Then run =bash sshfs.sh= command. This way, you won't have to type the 3 commands each time you log back in to your Mac.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2018-05-24
-
YiLee
Main
Welcome TWikiGuest
Register
Log in
Main Web
Main Web Home
Users
Groups
Offices
Changes
Changes detailed
Topic list
Search
TWiki Webs
CSEveryBody
AIMAS
CERAS
CF
CrySP
External
Faqtest
HCI
Himrod
ISG
Main
Multicore
Sandbox
TWiki
TestNewSandbox
TestWebS
UW
My links
People
CERAS
WatForm
Tetherless lab
Ubuntu HowTo
eDocs
RGG NE notes
RGG
CS infrastructure
Grad images
Edit
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback