# FTP or SFTP

**URL:** https://www.finalbuilder.com/forums/t/ftp-or-sftp/1831
**Category:** Discussion
**Created:** [August 20, 2011, 11:49am UTC](https://www.finalbuilder.com/forums/t/ftp-or-sftp/1831 "2011-08-20T11:49:05Z")
**Posts on this page:** 4
**Page:** 1

<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: [August 20, 2011, 11:49am UTC](https://www.finalbuilder.com/forums/t/ftp-or-sftp/1831/1 "2011-08-20T11:49:05Z")

</div>

I am using FTP Connect then put FTP Change Directory but by turning the two actions in FinalBuilder, the first successful run, the second error when running the leaf connection, I tried touse SFTP and aparesentou the same error, anyone know how to solve?

---

<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: [August 21, 2011, 5:48am UTC](https://www.finalbuilder.com/forums/t/ftp-or-sftp/1831/2 "2011-08-21T05:48:56Z")

</div>

Did you set the connection to use on the Change Directory Action? What is the error message you see in the log?

---

<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: [August 21, 2011, 2:31am UTC](https://www.finalbuilder.com/forums/t/ftp-or-sftp/1831/3 "2011-08-21T02:31:56Z")

</div>

the connection, I informed the host name that I’m accessing, and FTP List Directory conection informed in the field the same name when executing command, the connection runs successfully, but the ftp directory list of the error, the error log appears not conected   
 follows the logs   
  
 Connection to host: [prosisw.com](http://prosisw.com)   
 08/20/2011 19:56:01: HOST [prosisw.com](http://prosisw.com)  
 08/20/2011 19:56:02: USER prosisw   
 08/20/2011 19:56:02: pass xxx   
 08/20/2011 19:56:02: FEAT   
 08/20/2011 19:56:02: OPTS UTF8 ON   
 08/20/2011 19:56:03: TYPE I   
 08/20/2011 19:56:03: SYST   
 08/20/2011 19:56:03: TYPE I   
  
 not connected

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [August 22, 2011, 2:08am UTC](https://www.finalbuilder.com/forums/t/ftp-or-sftp/1831/4 "2011-08-22T02:08:36Z")

</div>

Hi   
  
 Try placing the ‘FTP Check If Connected’ action immediately before the action that is failing. This action will allow you to fail the build if the FTP connection is not available for use or you can use it to attempt to re-establish the connection if has been closed.   
  
 Regards,   
 Steve
