システム

最近の投稿

アーカイブ

カテゴリー

sshfs

sshfs

sshfs を使えば、ssh さえ通ればリモートの内容を mount できるらしい。 さっそく使う。

# apt-get install sshfs/unstable fuse-utils/unstable libfuse2/unstable

debian では fuse グループが作られるので、sshfs を使う人は,自分のアカウント名を fuse グループに追加する。
一度 logout/login して id コマンドを用いて、fuse グループに加入しているのを確認。 FN 「fusermount の実行権限がない」と、エラーが出て動かず悩むが、 再 login しないと加入グループの情報が更新されないだけであった。 /FN あとは、

# modprobe fuse
$ sshfs remotehostname:directory ~/mnt
$ fusermount -u ~/mnt

でリモートのディレクトリをマウントできる。 職場マシンにもインストールするが、debian/stable(sid) kernel-2.4 系なため、 モジュールが無いといわれる。 リンク を参考に、以下のコマンドを実行し、モジュールを作成。

# apt-get install module-assistant
# apt-get install fuse-source
# cd /usr/src
# m-a prepare
# m-a a-i fuse
# depmod -ae $(uname -r)
# modprobe fuse

Google 検索

My Google   Yahoo

Microsoft

ファンサイト