Dondariadmin (トーク | 投稿記録) (ページの作成: == sshfsでリモートホストのファイルシステムをマウント == * 環境 ** CentOS 5 == fuse,fuse-sshfsパッケージインストール == # yum install -y fuse...) |
Dondariadmin (トーク | 投稿記録) |
||
(同じ利用者による、間の3版が非表示) | |||
47行目: | 47行目: | ||
* マウント成功 | * マウント成功 | ||
+ | |||
+ | == アンマウント == | ||
+ | |||
+ | $ fusermount -u remote | ||
+ | |||
+ | == オプション指定のバリエーション == | ||
+ | |||
+ | * sshポートを2000番にしている場合 | ||
+ | |||
+ | $ sshfs user@remotehost: -p 2000 remote/ | ||
+ | |||
+ | * identity file(秘密鍵ファイル)をid_rsa_hogehogeにしている場合 | ||
+ | |||
+ | $ sshfs user@remotehost: -o IdentityFile=~/.ssh/id_rsa.dondari.com remote/ | ||
+ | |||
+ | [[Category:Linux]] | ||
+ | [[Category:ssh]] |
# yum install -y fuse fuse-sshfs
Installed: fuse.i386 0:2.7.4-8.el5 fuse-sshfs.i386 0:2.2-5.el5 Complete!
$ mkdir remote $ sshfs user@remotehost: remote/ user@remotehost's password: fuse: failed to exec fusermount: Permission denied
$ rpm -ql fuse /bin/fusermount
$ ls -l /bin/fusermount -rwsr-x--- 1 root fuse 21076 9月 4 2009 /bin/fusermount
$ sudo chmod o+rx /bin/fusermount
$ ls -l /bin/fusermount -rwsr-xr-x 1 root fuse 21076 9月 4 2009 /bin/fusermount
$ sshfs user@remotehost: remote/
$ fusermount -u remote
$ sshfs user@remotehost: -p 2000 remote/
$ sshfs user@remotehost: -o IdentityFile=~/.ssh/id_rsa.dondari.com remote/Tweet