$ sftp user@servername
For example,
$ sftp foo@server.name or
$ sftp foo@192.168.0.1
To use sftp efficiently, a few important commands one need to know, as listed below:
- To get help on commands available.
- sftp> help
- sftp> ?
- The commands are generally divided into 2 groups: the commands that can be used to manipulate localhost and the commands that can be used to manipulate remote host. The commands that start with 'l' are specially for locahost only. Example, to list all directory listing on localhost:
- sftp> lls
- To list directories on remote host, use:
- sftp> ls
- The most important command, how to upload file to the remotehost
- sftp> put /local/path /remote/path
- To download file from remotehost
- sftp> get /remote/path /local/path
No comments:
Post a Comment