我有一台可以通过 SSH 连接到 IPv4 地址的服务器。现在我想通过 IPv6 进行 SSH。
我确定我的服务器分配了一个有效的 IPv6 地址,并且我已经将 sshd 配置为侦听 v6 地址(我将其设置为[::]:311),但是当我运行时(在我的笔记本电脑上)
ssh -v -6 -p 311 PUBLIC_V6_IP -l same_user_as_v4 -i ~/.ssh/id_rsa
我得到以下输出:
OpenSSH_5.8p2, OpenSSL 1.0.0d 8 Feb 2011
debug1: Reading configuration data /home/winus/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to PUBLIC_V6_IP [PUBLIC_V6_IP] port 311.
debug1: connect to address PUBLIC_V6_IP port 311: Permission denied
ssh: connect to host PUBLIC_V6_IP port 311: Permission denied
Run Code Online (Sandbox Code Playgroud)