tags:

views:

137

answers:

2

I'm trying to login into the sftp server but its giving me this

Connecting to sftp.ABCD.com...
/bin/sh: line 1: exec: connect: not found
ssh_exchange_identification: Connection closed by remote host
Couldn't read packet: Connection reset by peer

These are the credentials that I'm trying to give

The credentials for the sftp server is below:

SFTP servers information:

Proxy Address: proxy.ABCD.com Host name: sftp.ABCD.com Port: 32 User Name: wakao Password: 123!@#

I tried with several combinations but I couldn't arrive at a conclusion as in where and why its giving me the above mentioned message

sftp -o "ProxyCommand  connect -S proxy.ABCD.com:80"   [email protected]:32
sftp -o "ProxyCommand  connect -S proxy.ABCD.com:80    %h    %p"  [email protected]:32

Where am I going wrong? Or how to specify the command properly? Thanks in advance!

+1  A: 

If that really is your username/password combination I recommend you remove it, otherwise everybody on the Internet will have access to your SFTP server.

The problem is that the shell on the SFTP server cannot find the command connect. Two likely causes:

  1. Your $PATH is not set. Try replacing connect with /usr/bin/connect or $(which connect). Or login with SSH and locate this program.
  2. The SFTP server does not have connect installed. Contact the system administrator of the machine.
schot
Sandeep
A: 

As Schot said I contacted the System Administrator & after installing the connect the command is:

sftp -o "ProxyCommand connect -H proxy.ABCD.com:80 %h %p" [email protected]
Sandeep