root@ubuntu:~# usermod -aG sudo user
root@ubuntu:~# sudo visudo
root@ubuntu:~# mkdir /home/user
root@ubuntu:~# chown user:user /home/user -R
root@ubuntu:~# rsync --archive --chown=user:user ~/.ssh /home/nshd
rsync: link_stat "/root/.ssh" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
在 Ubuntu 18.04 上加载新的远程服务器