Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have been working on a small project where need to copy files from one windows machine to another through jenkins in a secure way. I have heard about publish over ssh plugin in Jenkins. I tried to set that up but no luck. Did anybody do that and help me in that? Even to resolve it, i had installed openssh with cygwin on both the windows server and tried to copy the files (through SCP) or just connect both hosts (through ssh) in linux way through cygwin but always gets error of -

ssh 3612 tty_list::allocate_tty: No tty allocated or

scp 2680 tty_list::allocate_tty: No tty allocated

Please help!

share|improve this question
    
    
Do need to add more information or my question is not proper? –  Pravish Jan 14 at 7:10
1  
Instead of "Please help me install the plugin", try "This is what I tried, what am I doing wrong?" –  Andrew Schulman Jan 14 at 8:16

1 Answer 1

do you have the "exec in pty" check box set in your jenkins job configuration for send over ssh?

Exec the command in a pseudo tty

This will enable the execution of sudo commands that require a tty (and possibly help in other scenarios too.) From the sudoers(5) man page:

requiretty If set, sudo will only run when the user is logged in to a real tty. When this flag is set, sudo can only be run from a login session and not via other means such as cron(8) or cgi-bin scripts. This flag is off by default.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.