SlideShare a Scribd company logo
How to use SFTP
23-02-2017
Abstract
• The main motto of this PPT is how to use SFTP
in our applications.
Introduction:
The SFTP Connector implements a secure file
transport channel so that your Mule application can
exchange files with external resources. SFTP uses
the SSH security protocol to transfer messages. You
can implement the SFTP endpoint as an inbound
endpoint with a one-way exchange pattern, or as an
outbound endpoint configured for either a one-way
or request-response exchange pattern.
Example
• .mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:file="http://www.mulesoft.org/schema/mule/file"
xmlns:sftp="http://www.mulesoft.org/schema/mule/sftp" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
• xmlns:spring="http://www.springframework.org/schema/beans"
• xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
• xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
• http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
• http://www.mulesoft.org/schema/mule/sftp http://www.mulesoft.org/schema/mule/sftp/current/mule-sftp.xsd
• http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd">
• <sftp:connector name="SFTP" validateConnections="true" doc:name="SFTP"/>
• <flow name="SFTPFlow">
• <sftp:inbound-endpoint connector-ref="SFTP" host=“***************" port=“*******"
path="/incoming/input" user=“*******" password=“**********" responseTimeout="10000" doc:name="SFTP"/>
• <logger message="---After SFTP-----" level="INFO" doc:name="Logger"/>
• <file:outbound-endpoint path="C:SFTP POCOutput" responseTimeout="10000" doc:name="File"
outputPattern="myfile.txt"/>
• </flow>
• </mule>
• Output:
• **********************************************************************
• * default * DEPLOYED *
• **********************************************************************
• ********************************************************************************
***********************
• * - - + APPLICATION + - - * - - + DOMAIN + - - * - - + STATUS + - - *
• ********************************************************************************
***********************
• * SFTP * default * DEPLOYED *
• ********************************************************************************
***********************
• INFO 2017-02-23 11:35:01,508 [[SFTP].SFTPFlow.stage1.02]
org.mule.api.processor.LoggerMessageProcessor: ---After SFTP-----
• INFO 2017-02-23 11:35:01,567 [[SFTP].connector.file.mule.default.dispatcher.01]
org.mule.lifecycle.AbstractLifecycleManager: Initialising:
'connector.file.mule.default.dispatcher.1217240011'. Object is: FileMessageDispatcher
• INFO 2017-02-23 11:35:01,588 [[SFTP].connector.file.mule.default.dispatcher.01]
org.mule.lifecycle.AbstractLifecycleManager: Starting:
'connector.file.mule.default.dispatcher.1217240011'. Object is: FileMessageDispatcher
• INFO 2017-02-23 11:35:01,629 [[SFTP].connector.file.mule.default.dispatcher.01]
org.mule.transport.file.FileConnector: Writing file to: C:SFTP POCOutputmyfile.txt
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.6/sftp-connector

More Related Content

What's hot (20)

PPTX
FILE TRANSFER PROTOCOL BY LAXMI $ Group
rajeev bhatt
 
PDF
Lecture 7 -_ftp,_tftp,_telnet_and_ssh
Serious_SamSoul
 
PPT
Server configuration
Aisha Talat
 
PPTX
Nfs version 4 protocol presentation
Abu Osama
 
PDF
FLOSS UK DEVOPS Spring 2015 Enhancing ssh config
dmp1304
 
PPTX
Linux System Administration - NFS Server
Sreenatha Reddy K R
 
PPTX
Telnet presentation
travel_affair
 
DOCX
File transfer protocol
Amandeep Kaur
 
PDF
Ftp (file transfer protocol)
Raghu nath
 
PPTX
An overview of ftp
indhuchezhian
 
PDF
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Netgate
 
PDF
Meeting 13. web server i
Syaiful Ahdan
 
PDF
Intro to Multi-WAN - pfSense Hangout April 2014
Netgate
 
PPTX
BlueHat v17 || TLS 1.3 - Full speed ahead... mind the warnings - the great, t...
BlueHat Security Conference
 
PPTX
Ftp server
madhurijaviya
 
PPT
Using an FTP client - Client server computing
lordmwesh
 
PDF
FreeBSD, ipfw and OpenVPN 2.1 server
Tomaz Muraus
 
PDF
Ftp server
pawnbeeta
 
PPTX
File Transfer Protocol
Vinh Nguyen
 
PDF
Meeting 9 samba
Syaiful Ahdan
 
FILE TRANSFER PROTOCOL BY LAXMI $ Group
rajeev bhatt
 
Lecture 7 -_ftp,_tftp,_telnet_and_ssh
Serious_SamSoul
 
Server configuration
Aisha Talat
 
Nfs version 4 protocol presentation
Abu Osama
 
FLOSS UK DEVOPS Spring 2015 Enhancing ssh config
dmp1304
 
Linux System Administration - NFS Server
Sreenatha Reddy K R
 
Telnet presentation
travel_affair
 
File transfer protocol
Amandeep Kaur
 
Ftp (file transfer protocol)
Raghu nath
 
An overview of ftp
indhuchezhian
 
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Netgate
 
Meeting 13. web server i
Syaiful Ahdan
 
Intro to Multi-WAN - pfSense Hangout April 2014
Netgate
 
BlueHat v17 || TLS 1.3 - Full speed ahead... mind the warnings - the great, t...
BlueHat Security Conference
 
Ftp server
madhurijaviya
 
Using an FTP client - Client server computing
lordmwesh
 
FreeBSD, ipfw and OpenVPN 2.1 server
Tomaz Muraus
 
Ftp server
pawnbeeta
 
File Transfer Protocol
Vinh Nguyen
 
Meeting 9 samba
Syaiful Ahdan
 

Viewers also liked (9)

PPTX
Securing api with_o_auth2
sivachandra mandalapu
 
PPTX
How to use secure property placeholder
sivachandra mandalapu
 
PPTX
Web services - A Practical Approach
Madhaiyan Muthu
 
PPT
IBM WebSphere MQ Introduction
ejlp12
 
PDF
Web Services Tutorial
Lorna Mitchell
 
PPTX
Ftp
Amandeep Kaur
 
PDF
Websphere MQ (MQSeries) fundamentals
Biju Nair
 
PPTX
Introduction to HTTP protocol
Aviran Mordo
 
PPTX
File Transfer Protocol
guest029bcd
 
Securing api with_o_auth2
sivachandra mandalapu
 
How to use secure property placeholder
sivachandra mandalapu
 
Web services - A Practical Approach
Madhaiyan Muthu
 
IBM WebSphere MQ Introduction
ejlp12
 
Web Services Tutorial
Lorna Mitchell
 
Websphere MQ (MQSeries) fundamentals
Biju Nair
 
Introduction to HTTP protocol
Aviran Mordo
 
File Transfer Protocol
guest029bcd
 
Ad

Similar to How to use SFTP (20)

PPTX
How to use file component
maheshtheapex
 
PPTX
Mule- File component example
DivyaSree1391
 
PPTX
File component in mule
javeed_mhd
 
PPTX
File component
F K
 
PPTX
File component in mule
Rajkattamuri
 
PPTX
File component
Sunil Komarapu
 
PPTX
Mule File component
AbdulImrankhan7
 
PPTX
File component
Durga Prasad Kakarla
 
PPTX
File component in mule demo
Sudha Ch
 
PPTX
Sftplite
RaviRajuRamaKrishna
 
PPTX
Sftplite
sivachandra mandalapu
 
PPTX
How to use poll scope
sivachandra mandalapu
 
PPTX
How to use parse template
sivachandra mandalapu
 
PPTX
How to use or filter
RaviRajuRamaKrishna
 
PPTX
How to use and filter
RaviRajuRamaKrishna
 
PPTX
How to use processor chain
sivachandra mandalapu
 
PPTX
How to use not filter
RaviRajuRamaKrishna
 
PPTX
How to use expression filter
Khasim Saheb
 
PPTX
Expression filter in Mule
Mohammed246
 
PPTX
How to use expression filter
Anand kalla
 
How to use file component
maheshtheapex
 
Mule- File component example
DivyaSree1391
 
File component in mule
javeed_mhd
 
File component
F K
 
File component in mule
Rajkattamuri
 
File component
Sunil Komarapu
 
Mule File component
AbdulImrankhan7
 
File component
Durga Prasad Kakarla
 
File component in mule demo
Sudha Ch
 
How to use poll scope
sivachandra mandalapu
 
How to use parse template
sivachandra mandalapu
 
How to use or filter
RaviRajuRamaKrishna
 
How to use and filter
RaviRajuRamaKrishna
 
How to use processor chain
sivachandra mandalapu
 
How to use not filter
RaviRajuRamaKrishna
 
How to use expression filter
Khasim Saheb
 
Expression filter in Mule
Mohammed246
 
How to use expression filter
Anand kalla
 
Ad

More from sivachandra mandalapu (20)

PPTX
Mock component in munit
sivachandra mandalapu
 
PPTX
Jms selector
sivachandra mandalapu
 
PPTX
Object store
sivachandra mandalapu
 
PPTX
Specifying a default exception strategy
sivachandra mandalapu
 
PPTX
Defining global exception strategies
sivachandra mandalapu
 
PPTX
Reference exception strategy
sivachandra mandalapu
 
PPTX
Validate json schema
sivachandra mandalapu
 
PPTX
Validation
sivachandra mandalapu
 
PPTX
Property place holder
sivachandra mandalapu
 
PPTX
Collection aggregator
sivachandra mandalapu
 
PPTX
Cloud hub deployment
sivachandra mandalapu
 
PPTX
Deployment options for mule applications
sivachandra mandalapu
 
PPTX
Setting up organization with api access
sivachandra mandalapu
 
PPTX
API gateway setup
sivachandra mandalapu
 
PPTX
Splitter
sivachandra mandalapu
 
PPTX
Expression
sivachandra mandalapu
 
PPTX
Bean as Datasource
sivachandra mandalapu
 
PPTX
Synchronous communication using jms back channel
sivachandra mandalapu
 
PPTX
Salesforce
sivachandra mandalapu
 
Mock component in munit
sivachandra mandalapu
 
Jms selector
sivachandra mandalapu
 
Object store
sivachandra mandalapu
 
Specifying a default exception strategy
sivachandra mandalapu
 
Defining global exception strategies
sivachandra mandalapu
 
Reference exception strategy
sivachandra mandalapu
 
Validate json schema
sivachandra mandalapu
 
Property place holder
sivachandra mandalapu
 
Collection aggregator
sivachandra mandalapu
 
Cloud hub deployment
sivachandra mandalapu
 
Deployment options for mule applications
sivachandra mandalapu
 
Setting up organization with api access
sivachandra mandalapu
 
API gateway setup
sivachandra mandalapu
 
Bean as Datasource
sivachandra mandalapu
 
Synchronous communication using jms back channel
sivachandra mandalapu
 

Recently uploaded (20)

PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PPTX
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Horarios de distribución de agua en julio
pegazohn1978
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Introduction to Indian Writing in English
Trushali Dodiya
 
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
infertility, types,causes, impact, and management
Ritu480198
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 

How to use SFTP

  • 1. How to use SFTP 23-02-2017
  • 2. Abstract • The main motto of this PPT is how to use SFTP in our applications.
  • 3. Introduction: The SFTP Connector implements a secure file transport channel so that your Mule application can exchange files with external resources. SFTP uses the SSH security protocol to transfer messages. You can implement the SFTP endpoint as an inbound endpoint with a one-way exchange pattern, or as an outbound endpoint configured for either a one-way or request-response exchange pattern.
  • 5. • .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:sftp="http://www.mulesoft.org/schema/mule/sftp" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" • xmlns:spring="http://www.springframework.org/schema/beans" • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" • xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd • http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd • http://www.mulesoft.org/schema/mule/sftp http://www.mulesoft.org/schema/mule/sftp/current/mule-sftp.xsd • http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd"> • <sftp:connector name="SFTP" validateConnections="true" doc:name="SFTP"/> • <flow name="SFTPFlow"> • <sftp:inbound-endpoint connector-ref="SFTP" host=“***************" port=“*******" path="/incoming/input" user=“*******" password=“**********" responseTimeout="10000" doc:name="SFTP"/> • <logger message="---After SFTP-----" level="INFO" doc:name="Logger"/> • <file:outbound-endpoint path="C:SFTP POCOutput" responseTimeout="10000" doc:name="File" outputPattern="myfile.txt"/> • </flow> • </mule>
  • 6. • Output: • ********************************************************************** • * default * DEPLOYED * • ********************************************************************** • ******************************************************************************** *********************** • * - - + APPLICATION + - - * - - + DOMAIN + - - * - - + STATUS + - - * • ******************************************************************************** *********************** • * SFTP * default * DEPLOYED * • ******************************************************************************** *********************** • INFO 2017-02-23 11:35:01,508 [[SFTP].SFTPFlow.stage1.02] org.mule.api.processor.LoggerMessageProcessor: ---After SFTP----- • INFO 2017-02-23 11:35:01,567 [[SFTP].connector.file.mule.default.dispatcher.01] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.file.mule.default.dispatcher.1217240011'. Object is: FileMessageDispatcher • INFO 2017-02-23 11:35:01,588 [[SFTP].connector.file.mule.default.dispatcher.01] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'connector.file.mule.default.dispatcher.1217240011'. Object is: FileMessageDispatcher • INFO 2017-02-23 11:35:01,629 [[SFTP].connector.file.mule.default.dispatcher.01] org.mule.transport.file.FileConnector: Writing file to: C:SFTP POCOutputmyfile.txt