我正在do-release-upgradeVM 上执行从全新安装的 Ubuntu 16.04 到 18.04。
升级后,我无法再通过端口 22 访问。再试一次,我在执行升级之前安装了 dropbear 并将其设置为端口 2222,这奏效了。
现在尝试将 sshd 重新联机,sudo /usr/sbin/sshd -D -d尝试连接时出现以下信息:
root@server:/etc/ssh# sudo /usr/sbin/sshd -D -d
sudo: getrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: getrlimit: Function not implemented
sudo: setrlimit: Function not implemented
sudo: setrlimit: Function not implemented
debug1: sshd version OpenSSH_7.6, OpenSSL 1.0.2n 7 Dec 2017
debug1: private host key #0: ssh-rsa SHA256:tcrXf+XQwDjGFkl7trXSgNjzu1ldhoYUHrejxPnHFdg
debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:LM2oV2f0unkLP3vt7JB0ebWJsIAPXV1bhc6N1hg0nNk …Run Code Online (Sandbox Code Playgroud)