首页 > 代码库 > SecureCRT的SFTP在Widdows与Linux之间传输文件

SecureCRT的SFTP在Widdows与Linux之间传输文件

使用SecureCRT软件ssh连接到Linux虚拟机。然后在SecureCRT上面打开SFTP会话

技术分享

 

------------------------sftp命令------------------------------------------
sftp> helpAvailable commands:ascii Set transfer mode to ASCIIbinary Set transfer mode to binarycd path Change remote directory to ‘path‘lcd path Change local directory to ‘path‘detail remote-path Display system information about remote file or folderldetail local-path Display system information about local file or folderchgrp group path Change group of file ‘path‘ to ‘group‘chmod mode path Change permissions of file ‘path‘ to ‘mode‘chown owner path Change owner of file ‘path‘ to ‘owner‘exit Quit sftphelp Display this help textinclude filename Include commands from ‘filename‘ Alternate: < filenameget
[-r][-a | -b] remote-path Download file -r downloads directory recursively force ascii (-a) or binary (-b) modeln [-s] existingpath linkpath Hardlink / symlink remote filels [options] [path] Display remote directory listinglls [options] [path] Display local directory listingmkdir path Create remote directorylmkdir path Create local directorymv oldpath newpath Move remote filelmv oldpath newpath Move local fileopen [user@]host[:port] Connect to remote hostput [-r][-a | -b] local-path Upload file -r uploads directory recursively force ascii (-a) or binary (-b) modepwd Display remote working directorylpwd Print local working directoryquit Quit sftprename oldname newname Rename remote filelrename oldname newname Rename local filermdir path Remove remote directorylrmdir path Remove local directoryrm path Delete remote filelrm path Delete local filesu username Substitutes the current user This is only supported with VShell for Windows 3.5 or later.type [transfer-mode] Display or set file transfer modeview remote-path Download and open fileversion Display protocol version

------------------------sftp命令(翻译)---------------------------------------

sftp-- help
可用命令:
cd 路径                        更改远程目录到“路径”
lcd 路径                       更改本地目录到“路径”
chgrp group path               将文件“path”的组更改为“group”
chmod mode path                将文件“path”的权限更改为“mode”
chown owner path               将文件“path”的属主更改为“owner”
exit                           退出 sftp
help                           显示这个帮助文本
get 远程路径                   下载文件
ln existingpath linkpath       符号链接远程文件
ls [选项] [路径]               显示远程目录列表
lls [选项] [路径]              显示本地目录列表
mkdir 路径                     创建远程目录
lmkdir 路径                    创建本地目录
mv oldpath newpath             移动远程文件
open [用户@]主机[:端口]        连接到远程主机
put 本地路径                   上传文件
pwd                            显示远程工作目录
lpwd                           打印本地工作目录
quit                           退出 sftp
rmdir 路径                     移除远程目录
lrmdir 路径                    移除本地目录
rm 路径                        删除远程文件
lrm 路径                       删除本地文件
symlink existingpath linkpath  符号链接远程文件
version                        显示协议版本

 

SecureCRT的SFTP在Widdows与Linux之间传输文件