指令格式
sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
[-o ssh_option] [-P port] [-R num_requests] [-S program]
[-s subsystem | sftp_server] hostsftp [user@]host[:file ...] #取得特定檔案sftp [user@]host[:dir[/]] #指定遠端起始目錄sftp -b batchfile [user@]host #自動 session因為有些用法使用分號區隔主機名稱和檔名路徑,IPv6 位址需要用方括號來區別。
參數:見 man sftp。
指令:類似 ftp 用的指令,不分大小寫,有 space 的檔名路徑需要加 quotes,pathname 的特殊字元 (見 glob() 函數) 需要 backslashes (‘\’) 跳脫。見 man sftp。
參考:
- man sftp
- sshfs
沒有留言:
張貼留言