usermod -aG sudo <username> //username to sudo
中文乱码问题解决:
apt-get purge locales
apt-get autoclean
apt-get install locales
cd /usr/share/locales
./install-language-pack en_US.UTF-8
dpkg-reconfigure locales
host
ssh-keygen -t rsa -C xx@example.com -f abc
guest
pub 放服务器上
cat abc.pub >> ~/.ssh/authorized_keys
sudo visudo
最后一行加
xxx ALL=(ALL)NOPASSWD: ALL