SSHFS を使用してリモートのディレクトリをマウントする
#SSH
#Linux
手順
sshfs
パッケージをインストールする。
modprobe fuse
を実行し、
fuse
カーネルモジュールが読み込まれていることを確認する。
公開鍵認証を設定する。 (パスワードなし)
/etc/fstab
を編集する。
code:/etc/fstab
/bin/sshfs#
user
@
host
:
remote directory
mount point
fuse IdentityFile=
path to private key
,allow_other,compression=yes,transform_symlinks,idmap=user,reconnect,_netdev,ServerAliveInterval=60 0 0
mount -a
を実行して設定を検証する。