connect with SSH

23 views
Skip to first unread message

yossibr9876

unread,
Aug 26, 2018, 10:05:08 AM8/26/18
to Jenkins Users
Hello ,

I need to connect to mac as a root from Jenkis.
It must be as SSL ?

I try to connect with ssh and I failed .

Any idea ?

* with an admin user it ok to connect to mac .

Thanks in advance

yossibr


Ivan Fernandez Calvo

unread,
Aug 26, 2018, 2:45:00 PM8/26/18
to Jenkins Users
IIRC the root user is disabled by default on Mac OS X, you can enable it if you set a password for it(https://support.apple.com/en-us/HT204012), but I think that it is better to enter as a regular user and use sudo for those operation that you need root access.

jojo

unread,
Aug 26, 2018, 2:53:58 PM8/26/18
to jenkins...@googlegroups.com
Thanks a lot.but the job as u described ask for password in mid night

On Sun, Aug 26, 2018, 21:45 Ivan Fernandez Calvo <kuisat...@gmail.com> wrote:
IIRC the root user is disabled by default on Mac OS X, you can enable it if you set a password for it(https://support.apple.com/en-us/HT204012), but I think that it is better to enter as a regular user and use sudo for those operation that you need root access.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/Kqy1yw5h47c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2960e628-257b-4607-850d-6d773546cd6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ivan Fernandez Calvo

unread,
Aug 26, 2018, 5:30:37 PM8/26/18
to Jenkins Users
You can configure sido to do not as for password to some commands, or for every command. Also you can pass the password in command line

echo password | sudo command

You can inject the password in your job from a credential in Jenkins

Ivan Fernandez Calvo

unread,
Aug 26, 2018, 6:25:11 PM8/26/18
to Jenkins Users
I meant

echo 'password' | sudo -S command
Reply all
Reply to author
Forward
0 new messages