pscp基本使用方法

来源:互联网 发布:mac 添加歌曲至资源 编辑:程序博客网 时间:2024/06/06 04:46

linux配置

sudo apt-get install openssh-serversudo vim /etc/ssh/ssh_config

change

#   Port 22#   Protocol 2

to

Port 22Protocol 2,1
sudo service ssh restartsudo ps -s | grep ssh

Done

Windows

You need to install pscp first.

1.Upload to linux:

pscp fileToSend dashuaige@192.168.23.3:/home/dashuaige/

dashuaige is the username
192.168.23.3 is the ip address of linux
You need to tap password then.

2.Download from linux:

pscp dashuaige@192.168.23.3:/home/dashuaige/filename C:/path

For folder, add -r to pscp.

0 0
原创粉丝点击