@lniwn
2017-12-01T06:40:33.000000Z
字数 594
阅读 656
博客
本文基于Ubuntu17.04版本。
passwdadduser <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_keys2systemctl restart sshd
HostKey /etc/ssh/ssh_host_rsa_keyHostKey /etc/ssh/ssh_host_ecdsa_keyHostKey /etc/ssh/ssh_host_ed25519_keyAuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2RSAAuthentication yesPubkeyAuthentication yesPasswordAuthentication noPermitEmptyPasswords no
$ date -R #查看时区$ sudo dpkg-reconfigure tzdata
