📅  最后修改于: 2022-03-11 14:51:12.896000             🧑  作者: Mango
ssh -t user@server sudo -- "sh -c 'apt update && apt upgrade -y'"
# For example, ec2 Debian or Ubuntu Linux server can be updated as follows
ssh -t ls.www-2 sudo -- "sh -c 'apt update && apt upgrade -y'"