1) リモート側(Xクライアント)
# vi /etc/ssh/sshd_config
X11DisplayOffset 10
X11Forwarding yes
X11UseLocalhost no
XauthLocation /usr/bin/xauth
# systemctl restart sshd
2) 起動
sshpass -p パスワード ssh -X -C -p 22 xxx.xxx.xxx.xxx
1) リモート側(Xクライアント)
# vi /etc/ssh/sshd_config
X11DisplayOffset 10
X11Forwarding yes
X11UseLocalhost no
XauthLocation /usr/bin/xauth
# systemctl restart sshd
2) 起動
sshpass -p パスワード ssh -X -C -p 22 xxx.xxx.xxx.xxx
# vi /etc/systemd/system/drop.service [Unit] Description= stop httpgwd DefaultDependencies=no Before=shutdown.target RefuseManualStart=true ...