# FinalBuilder 7 SSH with MacOSX

**URL:** https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614
**Category:** Discussion
**Created:** [September 30, 2010, 1:59am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614 "2010-09-30T01:59:49Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [September 30, 2010, 1:59am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/1 "2010-09-30T01:59:49Z")

</div>

I am running into an issue when trying to connect to MacOSX&nbsp;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&nbsp;have to specifically configure on MacOSX for it to be able to interface with FinalBuilder 7?

Thanks,  
Nathan

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 30, 2010, 3:46am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/2 "2010-09-30T03:46:08Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [September 30, 2010, 4:19am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/3 "2010-09-30T04:19:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 30, 2010, 5:30am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/4 "2010-09-30T05:30:29Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [September 30, 2010, 6:07am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/5 "2010-09-30T06:07:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [September 30, 2010, 6:17am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/6 "2010-09-30T06:17:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 30, 2010, 6:33am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/7 "2010-09-30T06:33:49Z")

</div>

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 !

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [September 30, 2010, 6:59am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/8 "2010-09-30T06:59:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 30, 2010, 7:07am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/9 "2010-09-30T07:07:24Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [September 30, 2010, 7:18am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/10 "2010-09-30T07:18:26Z")

</div>

Vincent,   
  
 I tried version .741 and unfortunately it doesn’t solve either issue.   
  
 Thanks again for your support!   
 Nathan

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [September 30, 2010, 6:37am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/11 "2010-09-30T06:37:12Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 1, 2010, 5:39am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/12 "2010-10-01T05:39:10Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 1, 2010, 6:00am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/13 "2010-10-01T06:00:27Z")

</div>

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](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_744.exe)   
  
 Cheers,   
  
 Ben

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [October 1, 2010, 12:36pm UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/14 "2010-10-01T12:36:04Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 6, 2010, 2:21am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/15 "2010-10-06T02:21:12Z")

</div>

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](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_756.exe) and let me know how it goes.   
  
 Cheers,   
  
 Ben

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [October 6, 2010, 3:40am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/16 "2010-10-06T03:40:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 9, 2010, 6:21am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/17 "2010-11-09T06:21:17Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 9, 2010, 9:27am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/18 "2010-11-09T09:27:35Z")

</div>

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&nbsp;[https://www.finalbuilder.com/download.aspx](https://www.finalbuilder.com/download.aspx)

&nbsp;

Cheers,  
  
Ben

---

<div class="post-metadata">

### Author: ![nathanm](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/nathanm/32/117_2.png) [@nathanm](https://www.finalbuilder.com/forums/u/nathanm)
#### Post date: [March 6, 2014, 11:52am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-7-ssh-with-macosx/1614/19 "2014-03-06T11:52:03Z")

</div>

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](http://www.freebsd.org/cgi/man.cgi?query=sshd_config&sektion=5)
