Telegram Group & Telegram Channel
bupt.moe
#群友骚话
#linux #openssh
我今天差点被勺子呛到了,还好我养成了动了 sshd_config 就另开连接检查是否可以连上的习惯。
Ubuntu 22.10 开始 sshd 使用 socket-based activation 监听。
保守派(之前的习惯,sshd_config自行配置端口):
systemctl disable --now ssh.socket
systemctl enable --now ssh.service

维新派(继续用):
mkdir -p /etc/systemd/system/ssh.socket.d
cat >/etc/systemd/system/ssh.socket.d/listen.conf <<EOF
[Socket]
ListenStream=
ListenStream=11451
EOF
sudo systemctl daemon-reload
sudo systemctl restart ssh.socket


更改完成之后记得维持旧连接并检查配置是否可用。



group-telegram.com/bupt_moe/2299
Create:
Last Update:

#linux #openssh
我今天差点被勺子呛到了,还好我养成了动了 sshd_config 就另开连接检查是否可以连上的习惯。
Ubuntu 22.10 开始 sshd 使用 socket-based activation 监听。
保守派(之前的习惯,sshd_config自行配置端口):

systemctl disable --now ssh.socket
systemctl enable --now ssh.service

维新派(继续用):
mkdir -p /etc/systemd/system/ssh.socket.d
cat >/etc/systemd/system/ssh.socket.d/listen.conf <<EOF
[Socket]
ListenStream=
ListenStream=11451
EOF
sudo systemctl daemon-reload
sudo systemctl restart ssh.socket


更改完成之后记得维持旧连接并检查配置是否可用。

BY bupt.moe




Share with your friend now:
group-telegram.com/bupt_moe/2299

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

The regulator said it had received information that messages containing stock tips and other investment advice with respect to selected listed companies are being widely circulated through websites and social media platforms such as Telegram, Facebook, WhatsApp and Instagram. The Security Service of Ukraine said in a tweet that it was able to effectively target Russian convoys near Kyiv because of messages sent to an official Telegram bot account called "STOP Russian War." This provided opportunity to their linked entities to offload their shares at higher prices and make significant profits at the cost of unsuspecting retail investors. "There are a lot of things that Telegram could have been doing this whole time. And they know exactly what they are and they've chosen not to do them. That's why I don't trust them," she said. Such instructions could actually endanger people — citizens receive air strike warnings via smartphone alerts.
from us


Telegram bupt.moe
FROM American