Sponsored Links
Sponsored Link

sponsored links

Collapse

Announcement

Collapse
No announcement yet.

SSH to iSeries problem

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

  • SSH to iSeries problem

    Hi,

    This is my first time posting on Code400 although I have used the site for several years now

    We have an iSeries machine on 7.1 which already has an OpenSSH server running on it and I have been tasked with figuring out how to connect our PCs to it as well as eventually connecting one iSeries to another to do SFTP. I have been trying on and off for weeks now and despite following multiple guides online and being able to connect fine, I just cannot login.

    In my latest attempts to get it working (using puTTY on PC to our iSeries), I have taken the following set up steps:
    • Edited sshd_config to allow RSA and password authentication
    • Created .ssh folder in my home directory on iSeries and chmodded to 644
    • Created authorized_keys file in .ssh folder as codepage 819 and chmodded to 700
    • Created RSA2 key pair using puTTYgen
    • Added public key to authorized_keys
    • Configured puTTY to use private key and connect as my username


    When I open the connection I get the following output:
    Code:
    Using username "BLAH".
    Welcome! Please login.
    Server refused our key
    SSH server: password
    Using keyboard-interactive authentication.
    Enter password for BLAH
    Password:
    If I enter my correct password, I get this:
    Code:
    Access denied
    SSH server: password
    Using keyboard-interactive authentication.
    Enter password for BLAH
    Password:
    So it seems that as well as refusing my key, it will not even accept a legitimate password either. I have also tried connecting from another iSeries and Chrome's Secure Shell app with exactly the same output so this makes me think the problem is on the server-side. It is all the more frustrating as I have done this loads of times with Linux machines and never had any problems!

    Has anyone had any similar issue to this and found a solution? Or does anyone have any suggestions of things to try? I have read on some forums about checking the log file for errors but they never mention where it is and I cannot find it so does anyone know where this will be?!

    Thanks in advance for any help

  • #2
    Re: SSH to iSeries problem

    How long is the userid that you are trying to sign in with? Is it more than 8 charaters long?

    Comment


    • #3
      Hi, I followed the instructions in this redbook. https://www.redbooks.ibm.com/redpape...s/redp4163.pdf and am unable to connect with Putty to my iSeries. I did all the steps correctly (He Said) The goal is to transfer a SAVF to my PC over an "OpenVPN Connect" connection. FTP does not work over "OpenVPN Connect", FTP works fine at the office when I am connected to the office network. I wonder if "OpenVPN Connect" is causing the "Server refused our key" error. I will try if from inside the office and get back here with the results. I want Dell Sonic Wall back. Thanks. FYI "OpenVPN Connect" seems to be some brand name. My company replaced Dell Sonic Wall with it.

      Comment


      • #4
        Years ago I used OpenVPN, and everything (FTP, SSH, etc) worked fine over the connection. I'm not sure that I understand the distinction between OpenVPN and OpenVPN Connect... but, remember, I haven't looked at OpenVPN in many years.

        I'm not understanding what any of this has to do with SSH/SFTP? Are you saying the server rejects your password only over OpenVPN? That doesn't make any sense at all.

        Comment

        sponsored links

        Collapse

        Working...
        X