VMware vSphere

 View Only
  • 1.  Not able to sftp to server

    Posted Oct 28, 2010 02:43 PM

    HI, I am trying to connect to my ftp server from vsphere 4.1 esx box. I am getting following error message

    # sftp 192.29.75.160

    Connecting to 192.29.75.160...

    ssh: connect to host 192.29.75.160 port 22: Connection refused

    Couldn't read packet: Connection reset by peer

    #

    I have opened all the firewall ports with cmd esxcfg-firewall --allowoutgoing

    If, I try to connect the above mentioned ftp server from esx 3.5 it works fine

    Thanks



  • 2.  RE: Not able to sftp to server

    Posted Oct 28, 2010 03:13 PM

    Hi,

    (Sorry if this is not what you required but thought it would be handy)

    Can you connect to your host using winscp (using the SCP option from the drop down which has SFTP as default) from a windows machine. If you can connect that way then you can copy files from your host to the local machine.

    Also enabled under the 'Security Profile' of the host being connected to 'Remote Tech Support SSH' which will also allow you to connect via putty to the host.

    If you found this helpful then please leave some points.



  • 3.  RE: Not able to sftp to server

    Posted Oct 28, 2010 11:29 PM

    The error message indicates the remote host is not listening on tcp/22... the remote host (or possibly an intermediary firewall) is specifically resetting the connection, so communication is working. Is SSH configured to listen on a non-standard port? Is SSH even enabled on the remote host? SFTP is FTP over SSH, which is different than regular FTP. For a regular FTP server you use the ftp command, not sftp.

    -


    Kirk Kosinski !http://www.kirkkosinski.com/li.png!

    MCITP: EA / VA / EDA7, VCP 4, CCA



  • 4.  RE: Not able to sftp to server

    Posted Oct 29, 2010 06:30 AM

    As writte, try first with SSH (for example using Putty).

    It works?

    Then check with WinSCP (SCP is different than sftp!).

    Then check which user you are using (note that root is not enabled by default).

    Andre