FinalBuilder 7 SSH with MacOSX

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?

Thanks,
Nathan

What settings are you using on the SSH Connect action?

I don’t have access to a Mac at the moment (I have a Macbook but didn’t bring it to work today) so I can’t test this today.

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.

Btw, I must say you guys make an awesome product!

Nathan

Hi Nathan

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.

Thanks,
Nathan

Running sshd with verbose logging on revealed the problem. Looks like I got it to work using:

sudo ssh-keygen -t rsa -f /etc/ssh_host_rsa_key
sudo ssh-keygen -t dsa -f /etc/ssh_host_dsa_key

Thanks for your help and excellent support,
Nathan

Hi Nathan

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.

Thanks,
Nathan

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.

Vincent,

I tried version .741 and unfortunately it doesn’t solve either issue.

Thanks again for your support!
Nathan

Build .741 appears not to be able to allow me to enter in a timeout value greater than 100,000ms (which is 1.67 minutes).
Nathan

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.

Cheers,

Ben

Nathan - a new test build with the 100,000ms limit removed can be found here: https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_744.exe

Cheers,

Ben

It appears that the 100,000ms limit has been fixed in build .744. I can now enter in and save values that are larger than 100,000ms.

Nathan

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.

Please get the build from https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_756.exe and let me know how it goes.

Cheers,

Ben

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.

Thanks for such a quick response!
Nathan

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

 

Cheers,

Ben

Another solution is to edit the sshd_config and turn PasswordAuthentication to yes.
http://www.freebsd.org/cgi/man.cgi?query=sshd_config&sektion=5