SFTP via Terminal Linux

Tutorial kali ini kita akan belajar bagaimana cara menggunakan SFTP via terminal Linux. Mari kita langsung saja ke tutorial.

Login ke server


1 sftp user@

Unggah file ke server


1 sftp> put file-local /folder/remote

Unduh file dari server


1 sftp> get file-remote /folder/local

Tampilkan daftar file di server


1 sftp> ls

Tampilkan daftar file di local, cukup tambahkan ‘l’ (local)


1 sftp> lls

Manual perintah pada sftp


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 sftp> help Available commands: bye                                Quit sftp cd path                            Change remote directory to ‘path’ chgrp grp path                     Change group of file ‘path’ to ‘grp’ chmod mode path                    Change permissions of file ‘path’ to ‘mode’ chown own path                     Change owner of file ‘path’ to ‘own’ df [-hi] [path]                    Display statistics for current directory or                                    filesystem containing ‘path’ exit                               Quit sftp get [-Ppr] remote [local]          Download file help                               Display this help text lcd path                           Change local directory to ‘path’ lls [ls-options [path]]            Display local directory listing lmkdir path                        Create local directory ln [-s] oldpath newpath            Link remote file (-s for symlink) lpwd                               Print local working directory ls [-1afhlnrSt] [path]             Display remote directory listing lumask umask                       Set local umask to ‘umask’ mkdir path                         Create remote directory progress                           Toggle display of progress meter put [-Ppr] local [remote]          Upload file pwd                                Display remote working directory quit                               Quit sftp rename oldpath newpath             Rename remote file rm path                            Delete remote file rmdir path                         Remove remote directory symlink oldpath newpath            Symlink remote file version                            Show SFTP version !command                           Execute ‘command’ in local shell !                                  Escape to local shell ?                                  Synonym for help

selamat mencoba 🙂

via vikashazrati.wordpress.com

Leave a Reply

Your email address will not be published.