|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SFTP connection with WMB v8.0.0.1 |
« View previous topic :: View next topic » |
Author |
Message
|
wmbted |
Posted: Mon Sep 10, 2012 3:21 am Post subject: SFTP connection with WMB v8.0.0.1 |
|
|
Newbie
Joined: 10 Sep 2012 Posts: 4
|
Hi,
I have a requirement to connect on outside FTP server (protocol SFTP using user:xxxx password:yyyy)
and read pdf files in default folder (FTP server return relative path for connected user)
When i try to connect to FTP server using FTP client (FilleZilla) list of files is returned correctly,
but when i try with Message Broker i recive an error:
Quote: |
Sep 10 12:39:50 MQBROKER1 WebSphere Broker v8001[51541]: (MYBROKER.default)[7]BIP3384E: File node 'File Input' in message flow 'test1'.
An unexpected reply has been received from 'SFTP' server 'x.x.x.x'. The command and reply are: 'Error while trying to get a directory list.
Reason: Error: No such file or directory'. : MYBROKER.93b6ff6b-3901-0000-0080-daee297ec8cb: /build/slot1/S800_P/src/DataFlowEngine/NativeTrace/ImbNativeTrace.cpp: 739: com.ibm.broker.nodes.filenodes.ComIbmFileInputNode.handleRemoteTransferException: :
|
We use Message Broker V8.0.0.1 on zLinux (s390x version 11 patchlevel 2)
For file reading we use FileInputNode with settings below:
Quote: |
Basic tab:
- Input directory = "/temp/test" -- local directory with 777 permissons
- File name or pattern = "*.pdf" -- pattern for pdf files
FTP tab:
- Transfer protocol = "SFTP"
- Server and port = FTP server ip -- ftp server is on port 22
- Security identity = "test"
- Server directory = "."
|
Security identity was configured with:
Quote: |
mqsisetdbparms MYBROKER -n sftp::test -u xxxx - p yyyy |
These are logs from FTP Server (in both cases same user is used):
Quote: |
When FTP Client (FilleZilla) is used
2012-09-07 10:17:00 - (not logged in) (x.x.x.x) ! New user connected from x.x.x.x, sending welcome message...
2012-09-07 10:17:00 - xxxx (x.x.x.x) ! Password authentication succeeded for user xxxx
2012-09-07 10:17:00 - x.x.x.x ! Successfully logged in.
2012-09-07 10:17:00 - x.x.x.x ! Encryption algorithms: (Server to Client) AES256-CTR, (Client to Server) AES256-CTR.
2012-09-07 10:17:01 - x.x.x.x > Request path "."
2012-09-07 10:17:01 - x.x.x.x < /
2012-09-07 10:17:01 - x.x.x.x > Request path "/."
2012-09-07 10:17:01 - x.x.x.x < /
2012-09-07 10:17:01 - xxxx (x.x.x.x) > List directory
2012-09-07 10:17:01 - xxxx (x.x.x.x) < Opening connection for /bin/ls.
2012-09-07 10:17:01 - xxxx (x.x.x.x) < Closing data connection.
2012-09-07 10:17:01 - xxxx (x.x.x.x) > Request path "/testData.pdf"
2012-09-07 10:17:01 - xxxx (x.x.x.x) < /testData.pdf
2012-09-07 10:17:08 - xxxx (x.x.x.x) ! Disconnected.
When Message Broker is used:
2012-09-07 10:19:48 - (not logged in) (x.x.x.x) ! New user connected from x.x.x.x, sending welcome message...
2012-09-07 10:19:49 - xxxx (x.x.x.x) ! Password authentication succeeded for user xxxx
2012-09-07 10:19:49 - xxxx (x.x.x.x) ! Successfully logged in.
2012-09-07 10:19:49 - xxxx (x.x.x.x) ! Encryption algorithms: (Server to Client) AES128, (Client to Server) AES128.
2012-09-07 10:19:49 - xxxx (x.x.x.x) > Request path ""
2012-09-07 10:19:49 - xxxx (x.x.x.x) < /
2012-09-07 10:19:49 - xxxx (x.x.x.x) > Request path "/."
2012-09-07 10:19:49 - xxxx (x.x.x.x) < /
2012-09-07 10:19:49 - xxxx (x.x.x.x) ! Disconnected.
|
I also tried with configurable services with settings below but with no success:
Quote: |
Type = "FtpServer"
accountInfo = "xxxx"
connectionType = "ACTIVE"
protocol = "SFTP"
remoteDirectory = "."
scanDelay = "5"
securityIdentity = "test"
serverName = "x.x.x.x"
transferMode = "BINARY"
|
Have i missed something to set?
Any suggestions?
Thanks |
|
Back to top |
|
 |
McueMart |
Posted: Mon Sep 10, 2012 2:08 pm Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
What happens if you set the remote directory to an absolute path (/home/myuser), rather than letting it default to the users home directory.
I have successfully transferred files outbound over sftp using 8.0.0.1 but have not used it as a file input node so cant 100% confirm it works! |
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 10, 2012 11:36 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Also better to use keys and not passwords with SFTP. |
|
Back to top |
|
 |
wmbted |
Posted: Tue Sep 11, 2012 5:49 am Post subject: |
|
|
Newbie
Joined: 10 Sep 2012 Posts: 4
|
I have successfuly read files wiht FileInputNode from:
- FTP on zOS (zFS) using username/passord authentification
- SFTP on another zLinux using username/passord authentification
On both cases i have full path to de directory with files.
I am waiting for FTP administrator reply which is absoluthe path of the directory. FTP server is on Windows.
McueMart wrote: |
What happens if you set the remote directory to an absolute path (/home/myuser), rather than letting it default to the users home directory.
I have successfully transferred files outbound over sftp using 8.0.0.1 but have not used it as a file input node so cant 100% confirm it works! |
|
|
Back to top |
|
 |
wmbted |
Posted: Tue Sep 11, 2012 5:52 am Post subject: |
|
|
Newbie
Joined: 10 Sep 2012 Posts: 4
|
I agree. We will change this before production.
zpat wrote: |
Also better to use keys and not passwords with SFTP. |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|