Riguz留言 | 贡献
无编辑摘要
Riguz留言 | 贡献
第1行: 第1行:
=System settings =
=System settings =
== Update system ==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo apt update
sudo apt update
sudo apt upgrade
sudo apt upgrade
do-release-upgrade
do-release-upgrade
reboot
</syntaxhighlight>
== hostname ==
<syntaxhighlight lang="bash">
vim /etc/hostname
</syntaxhighlight>
== ssh config ==
<syntaxhighlight lang="bash">
ssh-copy-id -p 50000 root@12.98.23.12
# vim /etc/ssh/sshd_config
PubkeyAuthentication yes
service ssh restart
ssh -p 50000 root@12.98.23.12
</syntaxhighlight>
</syntaxhighlight>




[[Category:Linux/Unix]]
[[Category:Linux/Unix]]

2025年10月5日 (日) 05:22的版本

System settings

Update system

sudo apt update
sudo apt upgrade
do-release-upgrade

reboot

hostname

vim /etc/hostname

ssh config

ssh-copy-id -p 50000 root@12.98.23.12

# vim /etc/ssh/sshd_config
PubkeyAuthentication yes

service ssh restart
ssh -p 50000 root@12.98.23.12