發表文章

目前顯示的是 1月 28, 2024的文章

ssh to another laptop with linux system while its lid is closing

Method1: $ sudoedit /etc/systemd/logind.conf modify: HandleLidSwitch= ignore HandleLidSwitchExternalPower= ignore HandleLidSwitchDocked= ignore $ reboot Method2: $ sudoedit /etc/UPower/UPower.conf modify: IgnoreLid= true $ service upower restart [Optional] $ reboot Finally, ssh to the desired laptop, then you can close the lid !!!  Reference 1.  https://askubuntu.com/questions/15520/how-can-i-tell-ubuntu-to-do-nothing-when-i-close-my-laptop-lid

[solved] ssh: connect to host XXX.XXX.XX.XX port 22: Connection refused

$ sudo apt install openssh-server $  sudo service ssh restart