And transfer files to Windows centos

Windows centos with each other to have a file transfer tool PentestBox (very strong) Here is the download link
link: https: //pan.baidu.com/s/1CF7HzjiGi3wnpScphJoF3g
extraction code: hvfm
copy the contents of this open Baidu network disk phone App, oh operation more convenient
installation as follows (minimum installation space 5G) can be directly extracted using
cmder can be (can be downloaded directly in Baidu)

 

 

 

 

 

 

Advanced Windows file to the directory where
my plate at oo C's
view files are not ls, is dir, when using ls, Chinese character is a question mark
to upload local files to the server

 

 

 

E.g. scp app1.0.0.363.jar [email protected]: / data in the directory of the c oo disk
to upload files to app1.0.0.363.jar / data directory on this server 192.168.10.160

Download the file from the server

 

 

 

For example scp [email protected]:. /Data/11.sh the /data/11.sh 192.168.10.160 on the
downloaded file to the directory c oo disk (local directory)

At the time other than the letter into the letter C or transducer plate (FIG. 2) was added / d

1 cd / d d: \

 

 

 

 

 

 and pass centos centos

 

 

1  scp app‐1.0.0.363.jar [email protected]:/pp

免密是
整秘钥
ssh-keygen -t rsa -P '' -f /root/.ssh/id_rsa
例如:
a拿b的文件
就把a的id_rsa.pub内容复制,粘贴到b的/root/.ssh/authorized_keys里
(authorized_keys是自己创建的)
scp参数
-r  可以拷贝目录
-f 若目的地已经有相同档名的档案存在,则在复制前先予以删除再行复制
-a 尽可能将源文件状态、权限等资料都照原装予以复制

 

用Windows自带的cmd,cmd查看文件不是ls,是dir
要安装一个小的应用putty,下载链接如下(64位的)
链接:https://pan.baidu.com/s/1R5iPPJy_dziTUNYq3vSYeA
提取码:mcof
复制这段内容后打开百度网盘手机App,操作更方便哦
官网如下

1 https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

 

 

 

安装后把pscp.exe复制到 C:\Windows\System32
这时,cmd界面就能用pscp了

1 pscp ‐r [email protected]:/data/sql_mysql c:\oo\

 

 

 就是把192.168.10.160服务器上 /data/sql_mysql目录传到C盘的oo目录下

 

1 pscp ‐r c:\oo [email protected]:/data

 

 把C盘的oo目录传到192.168.10.160服务器上的/data目录下

也可以用git
方法是一样的,是scp就行
git进不同盘符的文件时,先cd 盘符:     不用加/d
要先进盘符里,再进文件
这里可以用ll查看

Guess you like

Origin www.cnblogs.com/xiaoshagua/p/12188438.html