I am running into an issue when trying to connect to MacOSX using the SSH actions built into FinalBuilder7. For some reason it always fails and says "SSH error encountered: 114". It works perfectly in PuTTY. Is there something that I have to specifically configure on MacOSX for it to be able to interface with FinalBuilder 7?
I am using the Server, Username, and Password. It doesn't matter if I use "Set from server if null" setting, it doesn't work either way. Port is 22. Shell type is sh. Connect timeout 1000 (ms). Verbose logging is on. On the MacOSX machine I went into System Preferences -> Sharing -> and turned on Remote Login. I think the weird thing is that, that I am able to connect via PuTTY and not via FinalBuilder.
What version of FinalBuilder and OSX are you using. My curiosity got the better of me, so I ducked home and got my macbook. Apart from needing to generate a key pair on the machine first, the SSH actions worked fine first time. The OpenSSH version on my macbook is 5.1p1.
I am using MacOSX 10.6.4. What were the terminal commands that you used to generate a new key pair? I’ve tried several sources on the Internet and haven’t been able to come up with anything that got it to work. I am using OpenSSH_5.2p1 with OpenSSl 0.9.8l.
I just ran ssh-keygen without any parameters and that did the trick. Anyway glad you got it working, we’ll talk to the ssh library vendor about their error message though, not very helpful !
I came across another issue with SSH, when I give it the command “xcodebuild”, it doesn’t wait for it to finish the task before returning (maybe because the command timeout is set to 1 second). If I set the command timeout to say 10 minutes, it gives it enough time to complete the task, however, it always uses 10 minutes time, it doesn’t return right after the task is finished. Is this expected?
I am using build 7.0.0.650. – On another note, if I right-click on a “Try” statement and go to “Run Selected Actions and Children”… when it is done processing the children it continues to process down the tree regardless of hierarchy.
Ok, we’ll look into these issues. BTW we just released an update (build 741) which includes newer versions of the ssh library, worth a try although I doubt that will fix the timeout problem.
Hi Nathan, I’m looking into the SSH issues now. The 100,000ms problem is a regression bug - I’ll get a new build out this afternoon.
On the timeout issue - because of a bug in the third party library we use for the SSH connection, currently you do need to set the timeout to a value longer than the process execution time. This is obviously far from ideal. There’s a new version of the SSH library so I’m testing to see if the bug has been resolved, and am also in contact with the devs to see if there’s any other way of achieving what we’re after.
Hi Nathan, The latest test build should now behave as expected with respect to timeouts. Actions return when the remote command completes or the maximum timeout is reached - whichever happens first. You can set the timeout to -1 to wait infinitely on the remote command.
SSH works excellent. I was able to successfully use it to automate the building of the Mac version of our product. I tested “-1” command timeout option and it worked as expected.
The only thing that still doesn’t work… – If I right-click on a “Try” statement and go to “Run Selected Actions and Children”… when it is done processing the children it continues to process down the tree regardless of hierarchy.
Hello, I don’t know what I’m doing wrong, but I continue with the error. Build Log: SSH Open Connection - [Servidor] Status: Error Date: 09/11/2010 Time: 17:08:24:139 End: 17:08:25:401 Duration: 00:00:01:262 Action Messages: Initiating SSH connection to 192.168.3.3 for dorival on port 22 Server key received, fingerprint cb40687a1bc9ef114f80292e05a7e5ab SSH error encoutered: 114
Environment: Client: FinalBuilder 7.0.0.756, windows 7. Server SSH: Suse Linux 11.3, with openssh-5.4p1-8.2.x86_64 Obs: putty works.
Hi Dorival, Have you tried re-generating the server's ssh keys using ssh-keygen? Can you also please install the latest version of FinalBuilder from https://www.finalbuilder.com/download.aspx