SFTP/SSH/SCP file transfer to/from 3560 switch

Unanswered Question
Jul 30th, 2010

I am trying to transfer files to

3560 switch using one of the above protocols.  I can connect to the switch via ssh

successfully for day to day mgmt.  however when I run

WinSCP of filezilla I am

unable to establish a connection.  I can authenticate successfuly but than receive the following error.

"Cannot initialize SFTP protocol. Is the host running a SFTP server"

As far as I can tell this should be possible or am I missing something?  Thank you

debug and partial config below

authentication successful for cisco
00:28:25: SSH2 0: ssh_receive: 68 bytes received
00:28:25: SSH2 0: input: packet len 48
00:28:25: SSH2 0: partial packet 16, need 32, maclen 20
00:28:25: SSH2 0: MAC #7 ok
00:28:25: SSH2 0: input: padlen 19
00:28:25: SSH2 0: received packet type 90
00:28:25: SSH2 0: channel open request
00:28:25: SSH2 0: send: len 32 (includes padlen 10)
00:28:25: SSH2 0: done calc MAC out #7
00:28:25: SSH2 0: ssh_receive: 84 bytes received
00:28:25: SSH2 0: input: packet len 64
00:28:25: SSH2 0: partial packet 16, need 48, maclen 20
00:28:25: SSH2 0: MAC #8 ok
00:28:25: SSH2 0: input: padlen 15
00:28:25: SSH2 0: received packet type 98
00:28:25: SSH2 0: [email protected] request
00:28:25: SSH2 0: ssh_receive: 68 bytes received
00:28:25: SSH2 0: input: packet len 48
00:28:25: SSH2 0: partial packet 16, need 32, maclen 20
00:28:25: SSH2 0: MAC #9 ok
00:28:25: SSH2 0: input: padlen 16
00:28:25: SSH2 0: received packet type 98
00:28:25: SSH2 0: send: len 16 (includes padlen 6)
00:28:25: SSH2 0: done calc MAC out #8
00:28:25: SSH2 0: subsystem request
00:28:25: SSH2 0: subsystem message received
00:28:25: SSH2 0: searching for subsystem sftp for vty
00:28:25: SSH2 0: send: len 48 (includes padlen 18)
00:28:25: SSH2 0: done calc MAC out #9
00:28:25: SSH2 0: send: len 16 (includes padlen 6)
00:28:25: SSH2 0: done calc MAC out #10
00:28:25: SSH2 0: send: len 16 (includes padlen 6)
00:28:25: SSH2 0: done calc MAC out #11
00:28:25: SSH2 0: send: len 48 (includes padlen 18)
00:28:25: SSH2 0: done calc MAC out #12
00:28:25: SSH0: Session terminated normally

Configuration

username cisco password 0 cisco
!
!
aaa new-model
!
ip domain-name cisco.com
ip ssh version 2line vty 0 4
exec-timeout 0 0
password cisco
transport input all
transport output all
line vty 5 15
exec-timeout 0 0
password cisco
transport input all
transport output all
!

ip scp server enable

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Siddharth Chand... Fri, 07/30/2010 - 13:58

Hi,

3560 switches do not support SFTP. WinSCP uses SFTP by default for connections. Hence the error.

3560 switches do support TFTP/FTP for the above, so use a TFTP/FTP server instead.

-------------------------

Sid Chandrachud

TAC-Customer Support Engineer.

Actions

This Discussion