Friday, March 21, 2014

SDL Tridion: How to publish using SSHFTP publishing protocol?


I have had the chance to setup my SDL Tridion 2011 environment to use SSHFTP publishing protocol.

Such experience didn't come without its challenges and now that I got it working, I would like to share it in case someone needs to set this up in the future.

First of all, I had to setup the SSHFTP server and then the SSHFTP client to test if I can establish the connection successfully.

In this case, I have chosen coreftp server that I found fairly easy to configure. After installing this tool, setup a new SSHFTP server, as demonstrated below:



Ensure to specify the hostname and the port number, as well as, the certificate and the path to the directory to your incoming folder.

As a second step, add a user that can access the incoming folder, as shown in the image below:



The next step will be to ensure that your Deployer (running as a Windows Service) has its incoming folder configured to the same folder as the SSH FTP server. Navigate to your TRIDION_HOME\config\cd_deployer_conf.xml and change the incoming folder to the same as where your SSH FTP is listening, in my case:

 <Queue>
        <Location Path="c:\tridion\incoming" WindowSize="20" Workers="10" Cleanup="true" Interval="2s"/>
    </Queue>


This will allow that once the package arrives in the incoming folder, the deployer will start processing its contents. After applying this change, restart your Deployer.

Now you can use a client to test if you are able to connect successfully. Any SSH FTP client can be used, in my case I have used Filezilla.

You are now ready to configure your publication target on the CME, as the Transport Service needs to know where it should place the package for the SSHFTP and Deployer. In this case, I have configured the publication target as follows:



You should now be all set to publish using SSHFTP protocol!

2 comments:

RobertC said...

Nice article Rute. I'd also like to add that if publishing is failing to an SSHFTP target, confirm is there were any recent updates to the SSH on the server being published to. Recently a customer patched a UNIX system with an SSH update that broke our publishing.

Rute said...

Hi Robert,

Thank you for your post!
I wasn't aware that an update to the SSH could have such impact - so thank you for sharing this information, I will keep it in mind! Kind regards, Rute