LoginSignup
0
0

More than 1 year has passed since last update.

Windows で sshfs で多段接続先をマウントして Explorer で表示したいメモ

Last updated at Posted at 2023-01-01

背景

リモートの機械学習サーバ(ssh 多段接続)の結果データ(e.g. 画像)を Windows でドライブマウントして Explorer とかで直接見たい...

rclone や ssfs-win(gui)があります.

中身的には winsfp を使っています.
ちょっとリリースが古いですが, sshfs-win の GUI が便利でしょうか.

sshfs 自体開発終了したようなので,

sshfs-win ももうあんまり開発ないのかしらん(ほそぼそ commit はあるようであるが)

多段接続

ただ, winfsp は多段接続している場合はうまくいきません.

~/.ssh/config の設定は直接は見てくれません. :cry:

別途ポートフォワーディングしておくか, ゴニョゴニョ接続の設定がんばります!

Port forwarding + SikiKali(sshfs-win GUI)

Windows native でポートフォワードしておき,

> ssh -L 2022:localhost:22 syoyo@remotehost

SikiKali で以下のように設定すればいけます!

image.png

  • Port number
  • IdentityFile 指定(~/.ssh/config を見てくれないため)
  • Volume Does not Use A Password(公開鍵認証を使う)

WSL2 でマウント?

パスがちょっとめんどいですが, wsl で sshfs する手もあります.

ただ, 私の環境 Windows 11 では WSL 内からは見えても Explorer で開くと空っぽでした...
(ssh key が Windows native と wsl で違うからとか..?)

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