
我正在嘗試使用 scp 複製家庭網路上的檔案。但是,每次我運行它時,它只是列印使用說明
scp -i [email protected]:temp/backups/file.txt .
它只會繼續列印
usage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
[-J destination] [-l limit] [-o ssh_option] [-P port]
[-S program] source ... target
答案1
閱讀它告訴你的內容:
scp [-346BCpqrTv] [-c 密碼] [-F ssh_config] [-i 識別檔] [-J 目標] [-l 限制] [-o ssh_option] [-P 連接埠] [-S 程式] 來源...目標
原因可能更明顯,我刪除了您未使用的可選參數:
scp -i identity_file source target
但你只在 '-i' 之後提供了 2 個參數