@lniwn
2017-12-01T14:40:33.000000Z
字数 594
阅读 554
博客
本文基于Ubuntu17.04版本。
passwd
adduser <username>
vim /etc/sudoers
,添加如下代码lniwn ALL=(ALL) ALL
/etc/sudoers.d/sudoers
中添加,该文件mode必须为0440/etc/ssh/sshd_config
/root/.ssh/authorized_keys
或者/root/.ssh/authorized_keys2
systemctl restart sshd
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
RSAAuthentication yes
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
$ date -R #查看时区
$ sudo dpkg-reconfigure tzdata