您的位置:首页 > 运维架构 > Linux

我的linux笔记

2015-11-20 21:28 495 查看
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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: