windows下使用putty+psftp连接linux虚拟机进行文件传输

嘛,首先需要用putty连接linux.除了重要的ssh协议的配置之外,还可能要在linux下输入命令:

service iptables stop(用于关闭防火墙)

service sshd start(开启ssh协议)

ifconfig(查看ip地址)

可以通过passwd  [用户名]的命令修改登录密码(嘛,root密码设成123456被access denied很多次,改成zxcvbnm123就登上了<黑人问号?>)

然后要打开psftp(http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html这是下载链接喔)

输入:

open [linux机的ip地址]    

lcd [windows目录]  (指定一个windows目录)

cd [linux目录]  (指定一个linux目录)

put [windows下的文件名]  (传输)

于是就成功啦

当然可以用get [文件名] 进行下载

也可以put -r [文件名] 递归上传文件夹的

 

posted on 2017-03-22 22:03  此剑之势愈斩愈烈  阅读(322)  评论(0编辑  收藏  举报

导航