How To Solve Jenkins Docker Can Not SSH To Other Server

How To Solve Jenkins Docker Can Not SSH To Other Server

這篇介紹How To Solve Jenkins Docker Can Not SSH To Other Server。

Process

1
2
3
4
5
6
7
8
9
10
11
12
13
對於新建一台Server後,要使用Jenkins去對這台Server自動佈署~
如果Jenkins是Docker的話,必須先確保在Jenkins Docker上可以不用
使用密碼ssh至要佈署的Server。

這時需先登入Jenkins Container,使用
$ ssh-keygen
Enter
Enter
Enter
$ ssh-copy-id [email protected]
$ [email protected]'s password: (第一次需輸入password)

即可設定完成!