SecureCRT下SFTP使用

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_28189423/article/details/102626524

1、打开

终端连接状态下使用Alt+p打开SFTP

2、常用命令 

ascii                          Set transfer mode to ASCII
binary                         Set transfer mode to binary
cd path                        Change remote directory to 'path'
lcd path                       Change local directory to 'path'
chgrp 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'
detail remote-path             Display system information about remote
                                 file or folder
ldetail local-path             Display system information about local
                                 file or folder
exit                           Quit sftp
get [-r] [-a | -b] [--nopreserve] [--move] [--no-flock] remote-path
                               Download file
                                 -r downloads directory recursively
                                 force ascii (-a) or binary (-b) mode
                                 --nopreserve the timestamp and permissions
                                   will not be preserved
                                 --move the files will be moved
                                 --no-flock disables the use of flock
help                           Display this help text
include filename               Include commands from 'filename'
                                 Alternate: < filename
ln [-s] existingpath linkpath  Hardlink / symlink remote file
ls [options] [path]            Display remote directory listing
lls [options] [path]           Display local directory listing
mkdir path                     Create remote directory
lmkdir path                    Create local directory
mv oldpath newpath             Move remote file
lmv oldpath newpath            Move local file
open [user@]host[:port]        Connect to remote host
put [-r][-a | -b] [--nopreserve] [--move] [--no-flock] local-path
                               Upload file
                                 -r uploads directory recursively
                                 force ascii (-a) or binary (-b) mode
                                 --nopreserve the timestamp and permissions
                                   will not be preserved
                                 --move the files will be moved
                                 --no-flock disables the use of flock
pwd                            Display remote working directory
lpwd                           Print local working directory
quit                           Quit sftp
rename oldname newname         Rename remote file
lrename oldname newname        Rename local file
rm path                        Delete remote file
lrm path                       Delete local file
rmdir path                     Remove remote directory
lrmdir path                    Remove local directory
su 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 mode
view remote-path               Download and open file
version                        Display protocol version

猜你喜欢

转载自blog.csdn.net/qq_28189423/article/details/102626524