Dondariadmin (トーク | 投稿記録) |
Dondariadmin (トーク | 投稿記録) |
||
51行目: | 51行目: | ||
$ fusermount -u remote | $ 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/ |
# 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