Topic "Server refused to start a shell/command in SCP"

Author Message
sathish
[View user's profile]

Joined: 2011-10-11
Posts: 1
Location: Chennai
Hi,


Can you please let me know if anything needs to be added to mod_sftp configuration to support winSCP. I can able to connect sftp using WinSCP, but could not connect via scp using winSCP.

I tried the following things in proftpd.conf file,
SFTPClientMatch ".*WinSCP.*" sftpProtocolVersion 4
SFTPClientMatch ".*WinSCP.*" channelWindowSize 64KB
SFTPClientMatch ".*WinSCP.*" channelPacketSize 16KB

i am getting the following error, while connecting to proftpd 1.3.3/mod_sftp server.

Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet len = 28 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet padding len = 10 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet payload len = 17 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet MAC len = 20 bytes
Oct 10 19:39:22 [32606] <ssh2:3>: received SSH_MSG_SERVICE_REQUEST (5) packet
Oct 10 19:39:22 [32606] <ssh2:10>: 'ssh-userauth' service requested
Oct 10 19:39:22 [32606] <ssh2:3>: sent SSH_MSG_SERVICE_ACCEPT (6) packet
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet len = 44 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet padding len = 10 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet payload len = 33 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet MAC len = 20 bytes
Oct 10 19:39:22 [32606] <ssh2:3>: received SSH_MSG_USER_AUTH_REQUEST (50) packet
Oct 10 19:39:22 [32606] <ssh2:10>: auth requested for user 'aa', service 'ssh-connection', using method 'none'
Oct 10 19:39:22 [32606] <ssh2:9>: no SFTPAuthorizedUserKeys configured, not offering 'publickey' authentication
Oct 10 19:39:22 [32606] <ssh2:9>: no SFTPAuthorizedHostKeys configured, not offering 'hostbased' authentication
Oct 10 19:39:22 [32606] <ssh2:9>: offering authentication methods: keyboard-interactive,password
Oct 10 19:39:22 [32606] <ssh2:3>: sent SSH_MSG_USER_AUTH_FAILURE (51) packet
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet len = 76 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet padding len = 18 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet payload len = 57 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet MAC len = 20 bytes
Oct 10 19:39:22 [32606] <ssh2:3>: received SSH_MSG_USER_AUTH_REQUEST (50) packet
Oct 10 19:39:22 [32606] <ssh2:10>: auth requested for user 'aa', service 'ssh-connection', using method 'keyboard-interactive'
Oct 10 19:39:22 [32606] <ssh2:3>: trying kbdint driver 'pam' for user 'aa'
Oct 10 19:39:22 [32606] <ssh2:9>: setting PAM_TTY to '/dev/ftpd32606'
Oct 10 19:39:22 [32606] <ssh2:9>: handling 1 PAM message
Oct 10 19:39:22 [32606] <ssh2:9>: sending USER_AUTH_INFO_REQ message to client
Oct 10 19:39:22 [32606] <ssh2:3>: sent SSH_MSG_USER_AUTH_PASSWD (60) packet
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet len = 28 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet padding len = 16 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet payload len = 11 bytes
Oct 10 19:39:22 [32606] <ssh2:20>: SSH2 packet MAC len = 20 bytes
Oct 10 19:39:22 [32606] <ssh2:3>: received SSH_MSG_USER_AUTH_INFO_RESP (61) packet
Oct 10 19:39:22 [32606] <ssh2:9>: reading USER_AUTH_INFO_RESP message from client
Oct 10 19:39:22 [32606] <ssh2:9>: received PAM_PROMPT_ECHO_OFF message 'Password: ', responding with text
Oct 11 02:39:22 [32606] <ssh2:3>: sent SSH_MSG_USER_AUTH_SUCCESS (52) packet
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet len = 220 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet padding len = 6 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet payload len = 213 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet MAC len = 20 bytes
Oct 11 02:39:22 [32606] <ssh2:3>: received SSH_MSG_IGNORE (2) packet
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet len = 44 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet padding len = 19 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet payload len = 24 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet MAC len = 20 bytes
Oct 11 02:39:22 [32606] <ssh2:3>: received SSH_MSG_CHANNEL_OPEN (90) packet
Oct 11 02:39:22 [32606] <ssh2:8>: open of 'session' channel using remote ID 256 requested: initial client window len = 65536 bytes, client max packet size = 16384 bytes
Oct 11 02:39:22 [32606] <ssh2:8>: confirm open channel remote ID 256, local ID 0: initial server window len = 65536 bytes, server max packet size = 16384 bytes
Oct 11 02:39:22 [32606] <ssh2:3>: sent SSH_MSG_CHANNEL_OPEN_CONFIRMATION (91) packet
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet len = 28 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet padding len = 12 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet payload len = 15 bytes
Oct 11 02:39:22 [32606] <ssh2:20>: SSH2 packet MAC len = 20 bytes
Oct 11 02:39:22 [32606] <ssh2:3>: received SSH_MSG_CHANNEL_REQUEST (9Cool packet
Oct 11 02:39:22 [32606] <ssh2:7>: received 'shell' request for channel ID 0, want reply = true
Oct 11 02:39:22 [32606] <ssh2:3>: sent SSH_MSG_CHANNEL_FAILURE (100) packet
Oct 11 02:39:22 [32606] <ssh2:15>: destroying unclosed channel ID 0 (0 bytes pending)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
It's likely you do not have shell access allowed on your server.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License