7:30起床, 食欲あまりなし, 不安感なし
牛乳とソーセージ一本
ここが大変参考になり、ほぼ真似しただけです。
https://blog.alprosys.com/2019/01/06/reverse-ssh-tunneling/
sshのトンネル機能を利用して、自宅外からVPS経由で自宅サーバー(intel-nuc)にsshでログインする
Host vps-ssh-tunnel
HostName public.example.com
User vps
ServerAliveInterval 60
ExitOnForwardFailure yes
TCPKeepAlive no
IdentityFile /path/to/public.example.com.rev.id_ecdsa
[Unit]
Description= SSH Tunneling to VPS
[Service]
ExecStart=ssh -NR 2222:intel-nuc:22 vps-ssh-tunnel
Type=simple
Restart=always
[Install]
WantedBy=default.target
この設定でVPSサーバー上でport 2222に流れる通信がintel-nucのport 22に転送される。
systemctl --user daemon-reload
systemctl --user start public-rev
systemctl --user enable public-rev
systemctl --user status して動いていることを確認
KillUserProcesses=no
また