Skip to Content.
Sympa Menu

unclug - Re: [unclug] AFS via SSHFS @ UNC

unclug AT lists.ibiblio.org

Subject: UNC Linux Users Group

List archive

Chronological Thread  
  • From: Gary Bishop <gb AT cs.unc.edu>
  • To: Tom Roche <Tom_Roche AT pobox.com>, UNC Linux Users Group <unclug AT lists.ibiblio.org>
  • Subject: Re: [unclug] AFS via SSHFS @ UNC
  • Date: Tue, 08 Sep 2009 07:52:08 -0400

Our AFS systems here in CS only give me a token if I login with a password, something I don't ordinarily do. I found that adding the argument "-o PreferredAuthentications=password" to the command line gets it to prompt me properly.

I also found the "-o idmap=user" option useful to get user ids mapped properly.

gb

Tom Roche wrote:
Gary Bishop Sat, Sep 5, 2009 at 3:38 PM
Use SSHFS. I did and have loved it. Works great. Now I don't care
about what file system is on the other end.

I adapted

https://lug.rose-hulman.edu/wiki/HOWTO_Use_sshfs_to_mount_AFS/DFS_home

as follows (TODO: wikify somewhere) for UNC and ubuntu=9.04:

0 Install FUSE and sshfs

$ sudo apt-get install sshfs

1 Create an AFS mountpoint

E.g. for my UNC AFS homespace

$ mkdir -p ~/afs/home

2 Mount an AFS directory to your mountpoint

I guessed server=isis.unc.edu (YMMV):

$ nslookup isis.unc.edu
...
Name: isis.unc.edu
Address: 152.2.200.124
Name: isis.unc.edu
Address: 152.2.200.125
Name: isis.unc.edu
Address: 152.2.200.122
Name: isis.unc.edu
Address: 152.2.200.123
$ sshfs tr AT isis.unc.edu: ~/afs/home
<usual SSH login fu omitted>
$ ls -al ~/afs/home | head
total 180
drwxr-xr-x 1 155088 203 4096 2009-08-05 22:52 .
drwxr-xr-x 3 tlroche tlroche 4096 2009-09-05 16:11 ..
-rw------- 1 155088 203 303 2008-06-04 14:00 .bash_history
lrwxr-xr-x 1 155088 203 54 2008-04-15 15:02 .bash_profile ->
/afs/isis.unc.edu/common/etc/scripts/bash_profile.USER
...

3 Automate mount with /etc/fstab

$ sudo emacs -nw -q /etc/fstab
$ diff -u /etc/fstab~ /etc/fstab
--- /etc/fstab~ 2009-08-02 11:08:04.000000000 -0400
+++ /etc/fstab 2009-09-05 16:19:36.000000000 -0400
@@ -18,3 +18,5 @@
...
+# SSHFS mount of UNC AFS home
+sshfs#tr AT isis.unc.edu: /home/tlroche/afs/home fuse
user,noauto 0 0

then [logout, login] and run

$ ls -al afs/home/ | head
total 180
drwxr-xr-x 1 155088 203 4096 2009-08-05 22:52 .
drwxr-xr-x 3 tlroche tlroche 4096 2009-09-05 16:11 ..
lrwxr-xr-x 1 155088 203 40 2009-06-16 10:05 .##%2Amail%2A#3282la6# ->
tr AT bc16-n13.isis.unc.edu.3282:1244014502
-rw------- 1 155088 203 303 2008-06-04 14:00 .bash_history
lrwxr-xr-x 1 155088 203 54 2008-04-15 15:02 .bash_profile ->
/afs/isis.unc.edu/common/etc/scripts/bash_profile.USER
...

(no prompt? guess somebody's caching something)

Sweet! Gotta check from home, then do my other AFS mounts.

Thanks for the tip, Tom Roche <Tom_Roche AT pobox.com>
_______________________________________________
unclug mailing list
unclug AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/unclug




Archive powered by MHonArc 2.6.24.

Top of Page