7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SSH接続でGUIを使いたい

Last updated at Posted at 2020-02-11

SSH接続される側(ホスト側)の設定

これはGUIに対応させるのとは関係なく、SSH接続するために必要な設定です。
すでにSSH接続している方は不要です。

必要なパッケージのインストール

sudo apt-get install aptitude && \
sudo aptitude install ssh

設定ファイルを開く

sudo gedit /etc/ssh/sshd_config

設定の変更

*#PermitRootLogin prohibit-password*の上にPermitRootLogin noを追加

再起動

設定を反映するために(たぶん)必要

SSH接続時のコマンド

-Yオプションと-Cオプションを追加するだけです。

ssh -YC [ユーザー名]@[コンピューター名 or IPアドレス]

-Yの意味

X11 Forwarding(X11転送)させる

-Cの意味

データを圧縮して転送させる

X11 Forwardingのトラブルシューティング

X11 connection rejected because of wrong authentication.
Unable to init server: Could not connect: Connection refused

上記エラーが出たときは、ホスト側で

sudo rm -r /home/[USERNAME]/.Xauthority

を行い、再起動

※USERNAMEはご自身のユーザー名に置き換えてください

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?