Ubuntu VPS:无法连接到外部服务器(Github)

Ubuntu VPS:无法连接到外部服务器(Github)

我正在设置一个 VPS Ubuntu 20.04,它将托管一个 RStudio 实例和 shiny-server。

我似乎无法连接到外部服务器,例如 Github。我已经设置了一个 Git 存储库并想对其进行测试:

git push -u origin master
fatal: konnte nicht auf 'https://github.com/***.git/' zugreifen: Couldn't connect to server

同样,当我尝试从 Github 安装 R 库时。

sudo su - -c "R -e \"devtools::install_github('***')\""
Fehler: Failed to install 'unknown package' from GitHub:
Couldn't connect to server

我禁用了 ufw,但没有变化。我经验不足,可能需要一些指点,看看要检查什么才能解决问题。

另外:不确定是否相关,但安装 RStudio 服务器也会产生错误:

sudo rstudio-server verify-installation
ERROR system error 1 (Operation not permitted); OCCURRED AT rstudio::core::Error rstudio::core::system::setResourceLimit(rstudio::core::system::ResourceLimit, RLimitType, RLimitType) src/cpp/core/system/PosixSystem.cpp:1485; LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:569

答案1

服务器是 IPv6,Github 不支持。

相关内容