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

Tailscale SSHでX11を使用する

Last updated at Posted at 2025-04-21

準備

省略するのでここ見てください。

以下を実行すればインストールはOKです

curl -fsSL https://tailscale.com/install.sh | sh

X11フォワーディングのやり方

ホストPCにopensshインストール

Host
sudo apt update
sudo apt install openssh-server
  • /etc/ssh/sshd_configを編集
/etc/ssh/sshd_config
X11Forwarding yes
X11UseLocalhost yes
  • サービスの再起動
bash
sudo systemctl restart ssh
  • SSH
ssh
ssh -J <user>@<tailscale-name> <user>@127.0.0.1 -Y

これでX11フォワーディングのSSHできます。

具体例

ユーザ名

  • haruki-goto
    Tailscale IP (example)
  • univearth-1
ssh -J haruki-goto@univearth-1 -Y haruki@127.0.0.1

これでX11フォワーディングできます!

高速化

-Cで圧縮しますす。

ssh -C -J <ユーザー名>@<Tailscaleのホスト名> <ユーザー名>@127.0.0.1 -Y

参考文献

0
1
2

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