平时工作主要还是在windows下,经常使用SecureCRT远程连接管理Debian服务器,
最近想在Debian服务器里装ftp服务器,闲配置麻烦,无意间才知道安装SSH的时候会自带一个sftp服务,
尝试性地试了一下,还挺好用的。(感觉自己火星大了)
1、设置本地目录和远程目录
2、菜单里选 File -> Connect SFTP Tab
3、在之后弹出的命令行下使用命令即可:
sftp> pwd
/var/www
sftp> lpwd
D:/webserv
sftp> help
Available commands:
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'
exit Quit sftp
help Display this help text
get remote-path Download file
ln existingpath linkpath 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
open [user@]host[:port] Connect to remote host
put local-path Upload file
pwd Display remote working directory
lpwd Print local working directory
quit Quit sftp
rmdir path Remove remote directory
lrmdir path Remove local directory
rm path Delete remote file
lrm path Delete local file
symlink existingpath linkpath Symlink remote file
阅读(1642) | 评论(0) | 转发(0) |