oracle - 无法连接到我的 Oracle 虚拟云实例

标签 oracle ssh cloud

终端只是说:

ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection timed out

Here are the firewall rules.

我无法 ssh 进入虚拟机,因此无法更改虚拟机上的防火墙规则

请帮忙。

最佳答案

首先,仔细检查您的 IP 地址:它必须与您的 Oracle Virtual Cloud Public IP Address 匹配,假设它是保留的(意味着它是固定的)

其次,检查您的本地防火墙:您无法更改远程防火墙,但本地规则可能仍会阻止您的 SSH 流量。

mentioned here :

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 守护程序已启动并正在运行。

另请检查Default Security List

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/

相关文章:

检查 SSH 私钥是否加密

visual-studio-code - WSL2 密码提示中 VS Code 上的远程 SSH

Android开发云数据库

java - Hibernate 序列 nextVal 已解析但未使用 (Oracle)

java - 无法找到主类

sql - 使用现有命名空间查询 Oracle 中的 XML 表

git - 如何创建存储库并将代码从服务器/cpanel 推送到 bitbucket

java - 除了 JSON 和 XML 之外,还有其他方法从 Web 服务检索数据吗?

nosql - 关于分布式计算的阅读内容

sql - 如何修复 Oracle 中 SQL 中的 "ORA-01801: date format is too long for internal buffer"错误