請問scp的使用... - Linux

By Lucy
at 2009-06-05T10:50
at 2009-06-05T10:50
Table of Contents
我想要使用scp來傳輸資料給遠端的多台PC
不過需要將傳輸動作寫在程式裡
也就是說是以system()來執行
不能像console一樣手動打入密碼
第一次連線的時候會出現
The authenticity of host '172.16.0.1 (172.16.0.1)' can't be established.
RSA key fingerprint is a7:45:22:42:a5:c9:e5:31:f1:67:55:a4:a1:a5
Are you sure you want to continue connecting (yes/no)?
這時候需要打入"yes"也不知道該如何處理
請問大家知道有什麼方法可以避開這些步驟
或是有其他方法能夠讓scp可以用一行指令就完成?
感謝!
--
不過需要將傳輸動作寫在程式裡
也就是說是以system()來執行
不能像console一樣手動打入密碼
第一次連線的時候會出現
The authenticity of host '172.16.0.1 (172.16.0.1)' can't be established.
RSA key fingerprint is a7:45:22:42:a5:c9:e5:31:f1:67:55:a4:a1:a5
Are you sure you want to continue connecting (yes/no)?
這時候需要打入"yes"也不知道該如何處理
請問大家知道有什麼方法可以避開這些步驟
或是有其他方法能夠讓scp可以用一行指令就完成?
感謝!
--
Tags:
Linux
All Comments

By Edith
at 2009-06-08T01:58
at 2009-06-08T01:58

By Thomas
at 2009-06-12T21:47
at 2009-06-12T21:47
Related Posts
掛載外接USB硬碟

By Leila
at 2009-06-04T23:11
at 2009-06-04T23:11
新電腦

By Elizabeth
at 2009-06-04T22:37
at 2009-06-04T22:37
utunbu 9.04雙系統Grub的問題

By Sarah
at 2009-06-04T22:33
at 2009-06-04T22:33
關於開機選單的問題 spfdisk grub

By Candice
at 2009-06-04T21:56
at 2009-06-04T21:56
個人郵件還原

By Xanthe
at 2009-06-04T20:41
at 2009-06-04T20:41