- Requirements: When configuring the continued deployment of jenkins need to configure SSH but I basically forgotten, and encountered an error
Failed to connect change directory:jenkins.plugins.publish_over.BapPublisherException:Failed to conn
- Create an SSH KEY
ssh-keygen -t rsa
Command line appears:
SSH KEY ask you to enter a file name, the default is id_rsa / id_rsa.pub
Enter file in which to save the key (/root/.ssh/id_rsa):
Asks you to enter a password, remember passphrase, can be very useful jenkins
Enter passphrase (empty for no passphrase):
Both spaces can be direct, convenient and quick.
2. After'll see three files in the directory /root/.ssh id_rsa (private), id_rsa.pub (public key), authorized_keys
3. Paste the contents of id_rsa.pub to the application server / root /. under ssh / authorized_keys, if not themselves create.