#SSH VMs
1 messages · Page 1 of 1 (latest)
Hi 👋 @timid gate and welcome. Is the ssh and exec done in your pipeline? As part of integration tests or a deployment perhaps? If so, how do you accomplish this with Jenkins today?
I use both CaaS and IaaS platforms. While there's no issue with the CaaS side, I still need to SSH into the server within the pipeline to retrieve some settings from the source repository.
After ssh plugin is installed, credentials (e.g. private key) should be set, and we can start ssh into the server within each job.
Here is one of the plugin I use with Jenkins.
https://www.jenkins.io/doc/pipeline/steps/ssh-steps/#sshcommand-ssh-steps-sshcommand-execute-command-on-remote-node
@sour urchin hello, I know dagger is not for this purpose but I still need to cover the old platform and it would be nice if it can be achieved with Dagger
can you try to ssh to a machine from a container like this to test?
docker run -it --rm -v ~/.ssh:/.ssh alpine sh
Then in alpine shell run
apk add openssh-client
ssh -i /.ssh/id_rsa <your server name>