ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Help with understanding SFTP on iSeries

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with understanding SFTP on iSeries

    I have quite a few processes that use native iSeries native FTP client (with and w/out SSL). Now i have the need to establish an SFTP transfer with a new customer, where the iSeries is the client. I need to do this in an unattended batch mode (CLP etc.) on a regular basis, but i would like to test the process "interactively" first.
    I have the appropriate products installed an configured by following document http://www-912.ibm.com/s_dir/slkbase...ht=2,538212497

    I was able to CALL QP2TERM and establish a connection using the ssh -T username@server.com, (after entering my password) I can navigate and list the directory contents... but i cannot get sftp to work in this environment.
    Upon issuing the command
    sftp username@server.com
    I receive this...
    Permission denied, please try again.
    Permission denied (publickey,password).
    Connection closed
    I'm not sure what the issue is here - is it related to the public/private key? I did NOT send the public key to the other server.
    Thanks,
    Greg

  • #2
    Re: Help with understanding SFTP on iSeries

    Well there's a thing...
    I'm in the process of setting up sFTP with the help of our stateside partners at this very time.

    This web page looks quite concise in setting things up and basic troubleshooting.


    Have you sent your public key to your partner, and have they saved it to their .ssh folder?
    Do you have their public key in your known_hosts file?

    We haven't tried it yet, but I hope it is of some help to you.
    the smoking gnu

    Comment


    • #3
      Re: Help with understanding SFTP on iSeries

      Thanks... I found that article yesterday afternoon. I also talked to IBM. With SFTP, they use "public key authentication" so it will not work using a password. I have already connected to them and added their public key to the known_hosts file. I sent my public key to them last night, haven't heard back yet - they are in the UK. Here is a great document on getting this setup:
      http://www-912.ibm.com/s_dir/slkbase...ht=2,538212497

      Comment

      Working...
      X