- id_rsa_oschina
- id_dsa70
Host git.oschina.net
IdentityFile ~/.ssh/id_rsa_oschina
Host 192.168.88.70
IdentityFile ~/.ssh/id_dsa70
ssh -vT wzp@192.168.88.70 |
debug1: Skipping ssh-dss key /c/Users/UM_CI_BUILDER/.ssh/id_dsa70 for not in PubkeyAcceptedKeyTypes |
E:\Jenkins_work\QA_UM_SSO\workspace\cas-server-webapp\target>scp cas.war wzp@192.168.88.70:/home/wzp/
E:\Jenkins_work\QA_UM_SSO\workspace\cas-server-webapp\target>exit 0
SSH: Connecting from host [WIN12FILESRV1]
SSH: Connecting with configuration [LINUX CAS SVR-80-Test] ... ERROR: Exception when publishing, exception message [Failed to read file - filename [C:\Users\UM_CI_BUILDER\.ssh\id_dsa] (relative to JENKINS_HOME if not absolute).
Message: [C:\Users\UM_CI_BUILDER\.ssh\id_dsa (The system cannot find the file specified)]] Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
这个需要在jenkins全局配置,增加LINUX CAS SVR-80-Test 在publish over ssh中的定义。
好吧,终于把Jenkins发布到linux的坑给填完了。