Ubuntu server setup (VPS):修订间差异
| 第24行: | 第24行: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ssh-copy-id -p 50000 | ssh-copy-id -p 50000 ubuntu@12.98.23.12 | ||
# vim /etc/ssh/sshd_config | # vim /etc/ssh/sshd_config | ||
PermitRootLogin no | |||
PasswordAuthentication no | |||
PubkeyAuthentication yes | PubkeyAuthentication yes | ||