小编Ben*_*min的帖子

Ubuntu 上的 SSH 问题 - 本地连接正常,远程连接 - 是我还是我的 ISP?

我在运行 Ubuntu 12.04 的服务器上遇到了问题,我正在尝试设置远程连接,以便我可以在外地工作时访问服务器。我已经安装了 SSH 服务器和所有这些东西,并将默认端口从 22 重新分配到 3399。

来自任何操作系统的本地连接都可以连接到 192.168... 地址,但我绝对无法连接到实际 IP 地址。

我相信我的配置是正确的,我会附上它。如果我在配置中做错了什么,请告诉我,我会对其进行更改。

老实说,我认为我的 ISP 提供的路由器很糟糕,尽管转发了 ssh 端口,但它可能会阻止任何入站流量。有什么我可以尝试验证的吗?当我通过我们的静态 IP 连接时,/var/log/auth 没有显示任何错误。我已经包含了下面未注释的所有值:(sshd_config)

Port 3399

ListenAddress 0.0.0.0
Protocol 2

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
UseDNS no
RSAAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication yes
GSSAPIAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv …
Run Code Online (Sandbox Code Playgroud)

ubuntu ssh port

5
推荐指数
1
解决办法
1791
查看次数

标签 统计

port ×1

ssh ×1

ubuntu ×1