Using SFTP on Ubuntu System

Using SFTP on Ubuntu System

1. I install a client software
>sudo apt-get install gftp

But it is a little slow sometimes.

2. I tried to use command to get my data from the remote server.
connect to the server
>sftp [email protected]

prompt the password and enter the password

get file from the server,get the index.php file from the remote server to local directory
>get /var/www/index.php  /home/luohua/

put file readme.txt to remote server
>put /home/luohua/readme.txt /var/www/

check the path of remote server
>pwd

check the path of the local machine
>lpwd

other commands: cd, lcd

if you want to quit the sftp system, use command
>bye

references:
http://tobysh.blog.hexun.com/4595645_d.html

猜你喜欢

转载自sillycat.iteye.com/blog/964020