1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

sshfsで別サーバのディレクトリをマウントする

Posted at

サーバーのFileを使いたい時に、どうすればいいの?
ftp?

sshfsでsshを経由してサーバのディレクトリをマウントできます。

恒例

インストールする

apt-get install sshfs

使う

sshfs username@192.168.1.101:/tmp/ /mnt/ -p 22


#ペラメタ:
#-p PORT equivalent to '-o port=PORT'
#-C equivalent to '-o compression=yes' 
#-F ssh_configfile specifies alternative ssh configuration file 
#-o reconnect reconnect to server 
#-o no_readahead synchronous reads (no speculative readahead) 
#-o sshfs_debug print some debugging information 
#-o cache=BOOL enable caching {yes,no} (default: yes) 
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?