【问题标题】:How can I connect SSH server in shared hosting in ubuntu terminal?如何在 ubuntu 终端的共享主机中连接 SSH 服务器?
【发布时间】:2020-11-14 23:21:27
【问题描述】:

我想通过 ubuntu 终端连接 SSH 服务器(共享托管服务器),还安装了 openssh-server,但是当我输入 SSH 详细信息时出现连接超时或主机无法访问等错误,我无法连接。

我有这些 SSH 详细信息。
用户名
SSH 主机
SSH 端口
链接
港口
和密码
私钥(PPK 文件)。

我参考了以下命令,但仍然无法连接。

https://phoenixnap.com/kb/ssh-to-connect-to-remote-server-linux-or-windows

希望您能帮助我解决这些问题。 谢谢。

【问题讨论】:

    标签: ssh server hosting shared-hosting openssh


    【解决方案1】:

    这取决于您的公钥是否已在远程服务器~username/.ssh/authorized_keys 上注册。

    但首先,您需要 convert your putty key to OpenSSH,使用 puttygen (as in here)。

    然后,将公钥注册到远程服务器,使用用户名/密码打开交互式会话并修改远程 ~username/.ssh/authorized_keys文件。
    之后,您不应该再次使用密码(除非它不是密码,而是腻子私钥passphrase

    【讨论】:

      猜你喜欢
      • 2012-08-23
      • 2015-06-13
      • 2017-05-22
      • 1970-01-01
      • 2010-09-09
      • 2013-09-08
      • 1970-01-01
      • 1970-01-01
      • 2019-10-01
      相关资源
      最近更新 更多