Connect using SFTP - Opens SFTP session
sftp username@hostname_or_IP
Transferring remote files to local system
Downloads file in local with the same name
get remoteFile
Downloads file with the different name
get remoteFile localFile
Copy a directory and all of its contents
get -r someDirectory
Transferring local files to remote System
Upload file from local to remote put localFile Upload directory put -r localDirectory
Example
sftp -vvv -oCheckHostIP=no -oPasswordAuthentication=no -oIdentityFile=~/.ssh/id_dsa user@host
put "file.txt" "/inputpath/dir"
No comments:
Post a Comment
Note: only a member of this blog may post a comment.