1. 如何在ubuntu中设置root用户密码?
1> sudo passwd;
2> enter the password for the current user;
3> enter password for the root;
4> reenter password for the root;
5> now you are able to login the ubuntu by using root;
2. 新安装上的linux环境,用xshell一直连接失败
sudo apt-get install openssh-server
3. 拷贝本机/home/administrator/test整个目录至远程主机192.168.1.100的/root目录下
scp -r /home/administrator/test/ root@192.168.1.100:/root/
4. 拷贝单个文件至远程主机
scp /home/administrator/Desktop/old/driver/test/test.txt root@192.168.1.100:/root/
5. 远程文件/文件夹下载
scp -r root@192.168.62.10:/root/ /home/administrator/Desktop/new/