建议看看我的教程,有个提示是问你要不要替换配置,不要更新就行。 更新了可能导致不能root登录。
小内存DD教程,Debian9升级Debian10升级Debian11 https://hostloc.com/thread-1002350-1-1.html
具体的变动应该是酱紫,
- │ Line by line differences between versions │
- │ │
- │ — /etc/ssh/sshd_config root.root 0644 2022-04-15 22:30:45 │
- │ +++ /tmp/tmp.0VVIdUDgDM root.root 0644 2022-04-15 23:40:34 │
- │ @@ -1,4 +1,4 @@ │
- │ -# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ │
- │ +# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ │
- │ │
- │ # This is the sshd server system-wide configuration file. See │
- │ # sshd_config(5) for more information. │
- │ @@ -10,7 +10,9 @@ │
- │ # possible, but leave them commented. Uncommented options override the │
- │ # default value. │
- │ │
- │ -Port 22233 │
- │ +Include /etc/ssh/sshd_config.d/*.conf │
- │ + │
- │ +#Port 22 │
- │ #AddressFamily any │
- │ #ListenAddress 0.0.0.0 │
- │ #ListenAddress :: │
- │ @@ -53,7 +55,7 @@ │
- │ #IgnoreRhosts yes │
- │ │
- │ # To disable tunneled clear text passwords, change to no here! │
- │ -PasswordAuthentication yes │
- │ +#PasswordAuthentication yes │
- │ #PermitEmptyPasswords no │
- │ │
- │ # Change to yes to enable challenge-response passwords (beware issues with │
- │ @@ -93,8 +95,6 @@ │
- │ PrintMotd no │
- │ #PrintLastLog yes │
- │ #TCPKeepAlive yes │
- │ -#UseLogin no │
- │ -#UsePrivilegeSeparation sandbox │
- │ #PermitUserEnvironment no │
- │ #Compression delayed │
- │ #ClientAliveInterval 0
复制代码
|