使用 MacOS 終端機的初學者密碼問題

使用 MacOS 終端機的初學者密碼問題

我今天開始完成訓練營的申請流程,遇到了一個可能非常基本的問題,但由於我是一個完全的新手,所以我迷失了!

我能夠毫無問題地登入伺服器一次。我關閉了筆記型電腦並移動了位置,當我進入 MacOS 終端機時,我添加了伺服器位址,沒有問題。它詢問一次密碼,說“權限被拒絕,請重試”,第二次輸入伺服器密碼時,系統會傳回以下訊息:

*** System restart required ***
--- Your logging code is 7067b799 ---
Last login: Thu Feb 10 23:13:56 2022 from 179.12.56.44
root@ip-10-250-29-217:~# ssh [email protected]
[email protected]'s password: 
Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-1128-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

4 packages can be updated.
2 of these updates are security updates.
To see these additional updates run: apt list --upgradable

New release '18.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

知道我能做些什麼來克服這個問題嗎?

答案1

至少,您需要重新啟動伺服器才能套用核心更新。您可以透過以下方式執行此操作:

sudo shutdown -r now

然而,Ubuntu 16.04 早已不再支援。如果您沒有執行擴充安全性維護包,則需要升級至 18.04 或更高版本。由於這是一個 AWS 實例,因此使用 20.04 建置一台新機器可能會更容易。

相關內容