Our client request us to access their SFTP using rsa key base authorzation.
Please advise following method can work this out :
1, In webMethods call the setKeyAndChain and fill in the privKeyFile with the path of private key file.
2, then, call the pub.client.ftp:login with filled serverhost, serverport, username & secure.auth = ‘SSL’
If this method is wrong, could anybody give me some hints how to work this out ?
Please kindly help. I am newbie of webMethods.
SFTP (SSH + FTP) is not supported by WM natively.
You can search this site for some existing practices.
Another option is to use jsch and write some java code around it. We are using it fine with rsa key auth.
Adding clarification, the “FTP” in “SFTP” is quite different from FTP. You cannot use the pub.client.ftp services for SFTP.
You will need to get a libary or tool that supports SFTP. One option is GnuPG which you can call from IS via command-line execution. Another is using a Java library such as Trilead for which you would write wrapper services to do the things you want.
For key/cert based authentication you’ll need to generate a public key to give to your partner so they can configure their system. Then you configure your side to use the key.
Hope this is enough to get you started on your research.
I’ve used the openssh package for clients with keys before. It is a little convoluted with an external batch file for commands but works fine.
meanhwile (beginning with 9.x) it is officially supported by SAG, but not for ports/listeners.
Regarding this I have a question of my own:
When using SFTP User Alias with Authentication Type Password all is working fine.
But unfortunately one of our SFTP-Partner systems forces us meanwhile to use Authentication Type Public Key.
While trying to configure this we found the IS Administration guide as well as the Training Material for “Knowledge Update - Administration” not really helpful as it is not described how to create the neccessary keys in the right way.
Putty is not really helpful here as we have to generate the objects on Solaris to match our application user.
Unfortunately this is quite urgent as this already affects our productive processing.
We use Putty to generate the SSH2 RSA key pair. Although we use it on Window, the key should work on any platform.
What’s exactly the issue when using it on Solaris?
thanks for your reply.
We solved this by using ssh-keygen.