2

I have SFTP client library[3rd party] which Fails to connect to the sftp server [use password authentication].

From 3rd party log file I can see that SSH/SFTP authentication is successs but ssh channel open is failed hence sftp connect is failing....

3rd party library first creates ssh tunnel and then cretaes a channel and then open a sftp-subsystem

I can see that ssh tunnel is create successfuly , but channel open is failed [server send the channel open failure msg], this may be becuase the user doesn't have ssh access to that server . But I am not sure

I can do manual sftp using command but SSH failed. sftp [email protected] works ssh [email protected] Fails

OS: Linux

But why manuly sftp command working fine ?

3
  • Perhaps the remote account has shells disabled? Jul 28, 2011 at 6:32
  • Maybe the remote server is using SSH1 that does not have support for subsystems. In what way connecting to the remote server via SSH fails? and BTW, which library are you using?
    – salva
    Jul 28, 2011 at 7:05
  • You can use -vvv parameter for ssh log output (the more v the more verbose ...) to get more detailed information where the connection fails.
    – arnep
    Jul 28, 2011 at 7:46

1 Answer 1

3

You seem to be having two different problems:

  • impossibility to login to shell (shell access can be disabled on the server) and
  • impossibility for the library to open SFTP connection.

In the latter case you need to contact library vendor for assistance - there can be different reasons for the problem.

One thing you can do yourself is check that SFTP subsystem is really configured on the server. If SFTP server is not specified in config, some applications manage to open command channel and try to guess SFTP server location and run it via command channel. Libraries usually don't do this.

You must log in to answer this question.