root密码在用普通账号登陆后直接使用sudo passwd root即可设置
腾讯云 OrcaTerm 很方便地登录服务器
为了方便上传下载,使用putty组件
从下面这个网址下载putty,一般包含了我们这里讲的pscp、psftp(如果没包含,这个页面也可以单独下载。pscp上传下载文件,psftp上传下载目录)。
Download PuTTY: latest release (0.79)
在windows下进入putty安装目录,输入命令:
.\pscp.exe .\localfile ubuntu@xxx.xx.xx.xxx:/home/ubuntu
即可上传到linux服务器中。
从linux向windows传文件(即下载):
.\pscp.exe ubuntu@xxx.xx.xx.xxx:/home/ubuntu/remote_file D:/local_dir
C:\Users\Administrator>pscp root@192.168.1.106:/root/login_zh_CN.png D:/test/
psftp上传下载目录和文件
windows上传文件到linux下:
C:\Program Files\PuTTY>psftp.exe
psftp: no hostname specified; use "open host.name" to connect
psftp> open 192.168.1.106
login as: root
root@192.168.1.106's password:
Remote working directory is /root
psftp> cd gxm
Remote directory is now /root/gxm
psftp> lcd d:\
New local directory is d:\
psftp> put GJY.txt
local:GJY.txt => remote:/root/gxm/JY.txt
从linux向windows传文件:
psftp> get "GJY.txt" "D:/test/GJY.txt"
remote:/root/gxm/GJY.txt => local:D:/test/GJY.txt
传目录的命令:put -r D:/test /root
下载目录的命令:get -r test d:/tools/test
中文文件名乱码:
refer:
ubuntu 文件名乱码_ubuntu 中文名乱码_青柠小苍兰的博客-CSDN博客
完美解决ubuntu server文件中文名乱码的问题(亲测有效) - 知乎
Ubuntu 设置中文语言环境_ubuntu设置中文环境_Yeats_Liao的博客-CSDN博客
ubuntu 默认不支持 gbk 所以用 gbk 编码写的东西就会乱码, 让 Ubuntu 支持 GBK, 方法如下
sudo apt-get install convmv
convmv -f gbk -t utf8 -r --notest *