[英]Upload file with SCP bash script
我需要bash腳本才能使用SCP上傳文件。 我如何在腳本中執行此操作,我想從其他程序中調用該腳本。 (我知道使用EXPECT可以做到這一點,但是我需要普通的bash腳本)。 有人可以幫忙嗎?
我強烈建議為您的系統設置基於密鑰的身份驗證 。 然后,您可以使用ssh-agent為程序自動解鎖密鑰。
我需要bash腳本以使用SCP上傳文件
好吧,只需在文件中鍵入scp命令並使其可執行即可。
scp
如果您詢問如何避免提示輸入密碼,強烈建議您使用SSH密鑰。 這是有關如何正確設置的非常簡單的教程。
[英]bash script using scp to transfer a file searched for
[英]bash scp in script will not see file in variable interpolation
[英]bash scp no such file or directory
[英]Why wont bash script run by Maven SCP my file?
[英]Bash script to scp newest file in a directory on a remote server
[英]scp multiple arguments of bash script
[英]Bash script to upload file by FTP
[英]Pass wildcard to scp in a wrapper bash script
[英]expect code in bash script in using SCP
[英]Cannot SCP a path with spaces from bash script?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.