with https://jenkins.io/doc/book/managing/cli/ ,I successfully configure
jenkins to use its CLI by app token and user-password,but ssh failed.
I run my jenkins in docker in local testing vm。
docker container run --name jenkins-blueocean --rm --detach \
--network jenkins --env DOCKER_HOST=tcp://docker:2376 \
--env DOCKER_CERT_PATH=/certs/client --env DOCKER_TLS_VERIFY=1 \
--volume jenkins-data:/var/jenkins_home \
--volume jenkins-docker-certs:/certs/client:ro \
--publish 8080:8080 --publish 50000:50000 jenkinsci/blueocean
using ssh-keygen to generate RSA key pair,and put the id_rsa.pub content
to Configure -> SSH Public Keys
enable SSHD Port in 8081
when I test my ssh configure,it fails:
# ssh -l oneslide -p 8081 localhost help
ssh: connect to host localhost port 8081: Connection refused
# docker exec into the container
bash-4.4$ ps -ef
PID USER TIME COMMAND
1 jenkins 0:07 /sbin/tini -- /usr/local/bin/jenkins.sh
5 jenkins 7:16 java -Duser.home=/var/jenkins_home
-Djenkins.model.Jenkins.slaveAgentPort=50000 -jar
/usr/share/jenkins/jenkins.war
7011 jenkins 0:00 bash
7381 jenkins 0:00 ps -ef
sshd isn't running
How Can I solve it ?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e8ed9912-0991-4239-91ff-f8770bf320e4%40googlegroups.com.