Ubuntu 24.04
設定ファイルの末尾に下記を追記する。
Match User username PasswordAuthentication yes X11Forwarding no AllowTcpForwarding no PermitTTY no ForceCommand internal-sftp ChrootDirectory /data/
サービスをリロードする。
# systemctl reload ssh
人生の最終目標は気ままな老後生活
Ubuntu 24.04
設定ファイルの末尾に下記を追記する。
Match User username PasswordAuthentication yes X11Forwarding no AllowTcpForwarding no PermitTTY no ForceCommand internal-sftp ChrootDirectory /data/
サービスをリロードする。
# systemctl reload ssh