首页 > 其他 > 详细

How to Use SFTP ?

时间:2017-05-11 12:39:33      阅读:250      评论:0      收藏:0      [点我收藏+]

Usage

Build a SFTP session with your linux like server, e.g, by the tool "Xshell" or any you like.

After the session is established, then, input the "help" command, do it like this:sftp:/home/catalyst/myapp> help.

You would see below commands shown below: (I would write them word by word, because I want to have a complete overview of them)


ls    -list content of a remote directory

lls   -list content of a local directory

cd   -change your remote working directory

lcd  -change and/or print local working directory

pwd -print your remote working directory

lpwd -print your local working directory

get  -down a file from the server to your local machine

put  -upload a file to your server from local machine


clear -clear screen

help   -give help

bye  -finish your SFTP session

exit  -finish your SFTP session

quit -finish your SFTP session


mkdir -create a directory on the remote server

mv   -move or rename a file on the remote server

rename  -move or rename a file on the remote server

rm  -remove a file on the remote server

rmdir  -remove a directory on the remote server


Demo

Change your local working directory:

技术分享

Get a file from remote server:

技术分享

Change your remote working directory, and upload a file to there from the local.

技术分享

Mars

March 17, 2015


How to Use SFTP ?

原文:http://www.cnblogs.com/liguangsunls/p/6840345.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!