Comware

 View Only
  • 1.  SCP/SFTP on Procurve 3400

    Posted Dec 01, 2006 12:16 AM
    Hi,

    I'm trying to use SFTP or SCP to copy the running-config from our ProCurve Switch (for backup reasons).
    But is doesn't work... I'm trying to use Winscp.
    When I try SFTP, I can connect, but as soon as I try to copy a file:
    ---------------------------
    Error
    ---------------------------
    Copying files from remote side failed.
    ---------------------------
    General failure (server should provide error description).
    Error code: 4
    Error message from server: Failure
    Request code: 5

    When i try to connect via SCP I get this message: (right after Authentication)



    Server sent disconnect message
    type 2 (SSH_DISCONNECT_PROTOCOL_ERROR):
    "Device does not support shell request not preceded by pty request."

    Help me please! :-)


  • 2.  RE: SCP/SFTP on Procurve 3400

    Posted Dec 03, 2006 02:26 PM
    I gave this a try today and I'm also seeing the same problem when using WinSCP.

    I believe it is having trouble copying ASCII files, as when you go to the 'os' directory and copy the firmware in binary, it works fine.

    SCP does not support ASCII files so you can forget about that.

    I ended up testing a few different SFTP clients, psftp, Core FTP lite, Filezilla and F-Secure. The only one I found that worked properly was F-Secure SSH File Transfer (now called Reflection for Secure IT).

    From what I can see, the ProCurve's support SFTP v3. If it were v4, then I believe native ASCII mode is fully supported and would probably work better for most clients.

    http://winscp.net/eng/docs/protocols




  • 3.  RE: SCP/SFTP on Procurve 3400

    Posted Dec 04, 2006 12:40 AM
    okay... :-(

    And do you have any Idea on the SCP-error?
    "Device does not support shell request not preceded by pty request."


    Or does anyone have any other suggestions for making automated scheduled backups of my Switch-Configs without PCM+?



  • 4.  RE: SCP/SFTP on Procurve 3400

    Posted Dec 04, 2006 03:25 AM
    heres another one....:

    when I try to use the 3400 (or a 2650) as a tftp-server, and try to download the config via Winagent's command-line tftp-client, I get "Access violation" errors...

    I have the feeling, that there's something completely wrong ???


  • 5.  RE: SCP/SFTP on Procurve 3400

    Posted Dec 04, 2006 03:44 AM
    It may be a similar problem, I know that TFTPd32 does not support netascii which is needed when trying to transfer the config files from the switch.

    On the other hand, have a look through this thread, may be helpful:

    http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1023792


  • 6.  RE: SCP/SFTP on Procurve 3400

    Posted Dec 04, 2006 11:14 PM
    after doing
    setmib hpSwitchIpTftpMode.0 -i 2

    TFTP is working as expected. Thanks!