终端只是说:
ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection timed out
我无法 ssh 进入虚拟机,因此无法更改虚拟机上的防火墙规则
请帮忙。
最佳答案
首先,仔细检查您的 IP 地址:它必须与您的 Oracle Virtual Cloud Public IP Address 匹配,假设它是保留的(意味着它是固定的)
其次,检查您的本地防火墙:您无法更改远程防火墙,但本地规则可能仍会阻止您的 SSH 流量。
ust by opening the port through firewall and security lists will not allow new incoming connections. Ex: unless there is a service listening on port 443 (Tomcat etc), you will be unable to connect. Same with SSH daemon for port 22.
因此请确保 SSH 守护程序已启动并正在运行。
Unlike other security lists, the default security list comes with an initial set of stateful rules, which should in most cases be changed to only allow inbound traffic from authorized subnets relevant to the region that homes that VCN or subnet.
A list of authorized subnet ranges relevant to each region can be found here .
特别是:
Stateful ingress: Allow TCP traffic on destination port 22 (SSH) from authorized source IP addresses and any source port.
This rule makes it easy for you to create a new cloud network and public subnet, launch a Linux instance, and then immediately use SSH to connect to that instance without needing to write any security list rules yourself.
关于oracle - 无法连接到我的 Oracle 虚拟云实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67759444/