1

I want to configure a post build step that copies the binary via ssh:

scp MyProgramm root@192.168.2.113:/bin

I remember having done smth like that before and I was asked for the root password by a Dialog Box in eclipse! Does anyone know if I need to put smth else in the textfield? Or how can I pass the password? echo password | scp... does not work...

Thanks guys!

4

2 回答 2

2

这是灵魂:

bash -c "scp MyProgram root@192.167.1.111:/bin/"

现在我仍然不知道如何传递密码,所以我不必输入它!任何人?

于 2012-07-02T07:43:54.857 回答
0

pscp -pw 'PASSWORD' ${PWD}/SRCFILE root@192.168.0.164:/root/DSTFILE

于 2015-04-23T19:00:58.200 回答