Comments (3)
感谢反馈 我们先在本地复现一下
from 1panel.
麻烦提供一下完整的配置信息
from 1panel.
环境
平台:阿里云ecs实例
系统:ubuntu22
问题经过
创建实例的时候我没有设置ipv6,并且使用了一段时间,云主机的ipv6是后面单独设置上去的,期间我在1panel上面设置了绑定ipv6,之后就发现当域名解析成ipv6时会连接失败,使用ipv4地址直接连接或者域名被解析成ipv4时可以连接成功,这个时候ssh并没有挂,后面我发现当配置文件只设置ipv4的监听没问题,设置ipv6就会挂掉,最后我添加AddressFamily any就没问题了,我今天重现不了这个问题了。
新问题(服务器重启之后)
现在的新问题是我只能设置ipv6,单独设置ipv4会挂
基本配置
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Include /etc/ssh/sshd_config.d/*.conf
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
KbdInteractiveAuthentication no
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the KbdInteractiveAuthentication and
# PAM authentication via KbdInteractiveAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# and KbdInteractiveAuthentication to 'no'.
UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
# override default of no subsystems
Subsystem sftp /usr/lib/openssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
PasswordAuthentication yes
问题配置
只监听ipv4
PasswordAuthentication yes
ListenAddress 0.0.0.0
#ListenAddress ::
监听ipv4+AddressFamily
PasswordAuthentication yes
AddressFamily any
ListenAddress 0.0.0.0
#ListenAddress ::
无问题配置
不监听任何地址
PasswordAuthentication yes
监听所有ipv4+ipv6
PasswordAuthentication yes
ListenAddress 0.0.0.0
ListenAddress ::
只监听ipv6
PasswordAuthentication yes
#ListenAddress 0.0.0.0
ListenAddress ::
from 1panel.
Related Issues (20)
- [FEATURE] 添加 mattermost 聊天应用 HOT 1
- [BUG] 在同一个域名下,不同端口部署多个1panel面板,同一浏览器打开面板会导致其他面板登录状态丢失 HOT 2
- 【补充】更完善的建议:1Panel易用性の综合建议2024.5 HOT 1
- [FEATURE] tcp/up端口转发是否有排期? HOT 3
- [FEATURE] 升级界面支持列出历史版本发行日志
- [FEATURE] 用户体验优化。 HOT 2
- [BUG] 无法升级 HOT 1
- [应用商店] 根据不同系统提供不同的软件版本
- [FEATURE]建议 网站添加批量操作选项 HOT 1
- [BUG] 一直升级失败,重启机器也不行 HOT 2
- java的支持 HOT 1
- [FEATURE]界面优化建议 HOT 1
- [FEATURE] 能不能加一个应用 rackshift HOT 1
- [主机-文件-回收站] 支持批量恢复文件(夹) HOT 1
- 【直装软件】安装方式的优化想法(例如:supervisor,fail2ban) HOT 2
- [BUG] Mysql BUG HOT 2
- [FEATURE] 主机-文件 图片文件不支持预览 HOT 1
- [FEATURE] 创建容器窗口确认按钮旁边增加一个查看Docker命令的按钮 HOT 1
- [FEATURE] 应用商店增加 Verdaccio 应用 HOT 1
- 添加已有应用的面板 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 1panel.