用pscp上传文件到Linux:
对本地文件的命令都是以“l”开头的。
将本地当前工作目录文件sourcefile.txt上传到远程当前工作目录中:
pscp -pw password -P port d:\putty\sourcefile.txt root@222.73.236.94:/dest_dir/
用psftp连接Linux,从linux上下载文件:
psftp -l root -pw password -P port 222.73.236.94
查看帮助:
psftp> help
! run a local command
bye finish your SFTP session
cd change your remote working directory
chmod change file permissions and modes
close finish your SFTP session but do not quit PSFTP
del delete files on the remote server
dir list remote files
exit finish your SFTP session
get download a file from the server to your local machine
help give help
lcd change local working directory
lpwd print local working directory
ls list remote files
mget download multiple files at once
mkdir create directories on the remote server
mput upload multiple files at once
mv move or rename file(s) on the remote server
open connect to a host
put upload a file from your local machine to the server
pwd print your remote working directory
quit finish your SFTP session
reget continue downloading files
ren move or rename file(s) on the remote server
reput continue uploading files
rm delete files on the remote server
rmdir remove directories on the remote server对本地文件的命令都是以“l”开头的。
psftp> get sourcefile.txt将本地当前工作目录文件sourcefile.txt上传到远程当前工作目录中:
psftp> put source.txt
查看端口使用情况:
netstat -tanp
本文介绍了如何使用pscp和psftp命令在Windows与Linux系统之间传输文件,包括基本命令语法、文件上传下载操作及端口使用情况查看。
1399

被折叠的 条评论
为什么被折叠?



