Switches, Hubs, and Modems
1752280 Members
4200 Online
108786 Solutions
New Discussion юеВ

Re: SCP/SFTP on Procurve 3400

 
SOLVED
Go to solution
TimoKohlbacher
New Member

SCP/SFTP on Procurve 3400

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! :-)
5 REPLIES 5
Matt Hobbs
Honored Contributor

Re: SCP/SFTP on Procurve 3400

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


TimoKohlbacher
New Member

Re: SCP/SFTP on Procurve 3400

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+?

TimoKohlbacher
New Member

Re: SCP/SFTP on Procurve 3400

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 ???
Matt Hobbs
Honored Contributor
Solution

Re: SCP/SFTP on Procurve 3400

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
TimoKohlbacher
New Member

Re: SCP/SFTP on Procurve 3400

after doing
setmib hpSwitchIpTftpMode.0 -i 2

TFTP is working as expected. Thanks!