Ubuntu 22.04 SSHサーバー設定及びクライアントからのX11接続

概要

Ubuntu 22.04 native環境に外からログインして使用できるよう、SSHサーバーの設定を行いました。

OpenSSH のインストール

Ubuntu Desktop 22.04 SSH接続の導入とIPアドレスの固定化 - アラコキからの Raspberry Pi 電子工作
Raspberry Pi 活用事例集 Ubuntu Desktop 22.04 LTS SSH接続の導入とIPアドレスの固定化   Raspberry Pi に Ubuntu Desktop 22.04 LTS をインス … "Ubuntu Desktop 22.04 SSH接続の導入とIPアドレスの固定化" の続きを...

上記を参考にし、OpenSSH をインストールしました。

$ sudo systemctl status ssh
Unit ssh.service could not be found.

$ sudo apt install openssh-server

$ sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2023-09-23 17:31:05 JST; 6s ago
       Docs: man:sshd(8)
             man:sshd_config(5)
   Main PID: 31791 (sshd)
      Tasks: 1 (limit: 19002)
     Memory: 1.7M
        CPU: 12ms
     CGroup: /system.slice/ssh.service
             └─31791 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"

 9月 23 17:31:05 rockers-ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
 9月 23 17:31:05 rockers-ubuntu sshd[31791]: Server listening on 0.0.0.0 port 22.
 9月 23 17:31:05 rockers-ubuntu sshd[31791]: Server listening on :: port 22.
 9月 23 17:31:05 rockers-ubuntu systemd[1]: Started OpenBSD Secure Shell server.
Copied title and URL