0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macでssh接続先のストレージをマウント

0
Posted at

タイトルの通りです。

SSHで繋いだ先のlinuxとかのPCの操作はターミナル経由で不満はないんだけど、ファイル操作をcyberduckとかでやってるのは、ちょっとなぁ。scpはもっといやだ。

アプリはmacに入ってるGUIのやつ使いたいけど、ファイルはできれば linux側に置いときたい。

みたいな時に sshfs を使えば macにsshの先のストレージをマウントできるようなので設定のメモ

インストール方法(FUSE-T版)

sshfsは macfuse という kernel拡張に依存していたらしいんだけど、それを入れなくてもできそうだと gemini が教えてくれたので、そっちのやり方で。

brew tap macos-fuse-t/homebrew-cask
brew trust macos-fuse-t/cask
brew install fuse-t fuse-t-sshfs

使い方

マウント

mkdir ~/mnt/remote
sshfs ユーザー名@ホスト名:/リモートのパス ~/mnt/remote

アンマウント

umount ~/mnt/remote

ということらしい。
しばらく使ってみます。

0
0
1

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?