File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -322,14 +322,19 @@ func (m ModJobSshStruct) setupClusterInner(clusterConf clusterconf.ClusterConfYm
322322 }
323323 _ = base64 .StdEncoding .EncodeToString (pubkeybytes )
324324
325- util .StartRemoteCmds (
325+ output , _ := util .StartRemoteCmds (
326326 hosts ,
327327 // install telego,
328328 util .ModRunCmd .CmdModels ().InstallTelegoWithPy ()+ " && " +
329329 // update authorized_keys
330330 strings .Join (m .NewSshCmd (SshJob {Mode : SshModeSetupThisNode }.ModeString ()), " " ),
331331 clusterConf .Global .SshPasswd ,
332332 )
333+ if strings .Contains (output [0 ], "ssh error:" ) {
334+ fmt .Println (color .RedString ("ssh error: %s" , output ))
335+ // debug sshd_config
336+ util .ModRunCmd .NewBuilder ("cat" , "/etc/ssh/sshd_config" ).WithRoot ().ShowProgress ().BlockRun ()
337+ }
333338}
334339
335340// https://qcnoe3hd7k5c.feishu.cn/wiki/V6eHwZm1aiofeykaSd5cmgPcnSe#share-Hc1hdGT26oI4I0xPaplcEhMundd
You can’t perform that action at this time.
0 commit comments