2017-11-22 5 views
0

Jenkins 마스터를 SSH를 통해 슬레이브 노드에 연결하려고합니다. 터미널에서 마스터 노드와 슬레이브 노드 사이에서 SSH를 수행 할 수 있는지 확인했습니다. 젠킨스에게 슬레이브 노드의 키와 패스워드를 제공했다. 내 호스트 키 확인 전략이 Manually Trusted key verification Strategy. When I select Launch Agent` 인 경우 다음 오류가 표시됩니다.

[11/22/17 09:40:39] [SSH] Opening SSH connection to ec2-**-**-**-**.*********.compute.amazonaws.com:22. 
[11/22/17 09:40:39] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed. 
[11/22/17 09:40:39] [SSH] Authentication successful. 
SSH connection reports a garbage before a command execution. 
Check your .bashrc, .profile, and so on to make sure it is quiet. 
The received junk text is as follows: 
tput: No value for $TERM and no -T specified 
tput: No value for $TERM and no -T specified 

null 
[11/22/17 09:40:39] Launch failed - cleaning up connection 
[11/22/17 09:40:39] [SSH] Connection closed. 

마스터 노드의 Jenkins 로그는 다음을 보여줍니다.

Nov 22, 2017 10:18:57 AM hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager getTrileadSupport 
WARNING: Could not create Trilead support class. Using legacy Trilead features 
java.lang.ClassNotFoundException: hudson.plugins.sshslaves.verifiers.JenkinsTrilead9VersionSupport 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
    at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.createVersion9Instance(TrileadVersionSupportManager.java:51) 
    at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.getTrileadSupport(TrileadVersionSupportManager.java:32) 
    at hudson.plugins.sshslaves.verifiers.SshHostKeyVerificationStrategy.getPreferredKeyAlgorithms(SshHostKeyVerificationStrategy.java:68) 
    at hudson.plugins.sshslaves.verifiers.ManuallyTrustedKeyVerificationStrategy.getPreferredKeyAlgorithms(ManuallyTrustedKeyVerificationStrategy.java:105) 
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:797) 
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:793) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
    at java.lang.Thread.run(Thread.java:748) 

[11/22/17 10:18:58] SSH Launch of DevOperations on ec2-**-**-**-**.*********.compute.amazonaws.com failed in 641 ms 

IT는 .bashrc에 문제가 될 것으로 보인다,하지만 난 조용 만들기 위해 .bashrc 파일에서 편집 모르겠어요.

어떻게하면 SSH 시작에 성공할 수 있습니까?

젠킨스 : ver. 2.91

마스터 노드는 : 아마존 리눅스 AMI는 2017.09

슬레이브 노드를 해제 : 14.04

답변

0

우분투 나는 수정 프로그램을 발견했다. 슬레이브 상자에서, 나는 그것이 실행 색상을 설정 한 경우 제거 ~/.bashrc을 편집했다 :

magenta=$(tput setaf 4) 
reset=$(tput sgr0) 

이이 문제를 해결 제거