準備
省略するのでここ見てください。
以下を実行すればインストールは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
参考文献