How to connect to sftp site?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RodolfoGiovanninetti
    Veteran
    • Oct 2007
    • 336

    How to connect to sftp site?

    Hello, I am lost when I need to connect to a sftp site or to a ssh machine (I do not even know if they are the same thing).
    Using filezilla I have been able to connect to a sftp site with these settings that are just an example: ip address [192.168.0.172]; port 12345; username: "utente"; password "something".
    I attach here a screen-shot.
    Using B.C.4 I am lost with profiles and or sessions.
    Please, can You explain step by step what I have to do to connect to the same site?
    Second, I ask the same step by step for a machine to which I can connect using putty and copy using pscp.
    In both cases, I have not my own key, neither private nor public, and I simply accept to connect to the site/machine.

    Thank You very much and regards

    Rodolfo Giovanninetti
    Attached Files
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    First, SFTP and SSH are two separate things. Commonly, a system that is accessible with SSH could optionally have SFTP support enabled, but not always. BC4 Pro supports connecting with SFTP (example client: Filezilla), but not SSH (example client: Putty). For the later half of your question, we do not support the machine where you use putty and pscp.

    For the first half, if Filezilla can connect, then it is likely BC4 can as well. However, Filezilla has a lot of automatic error handling, where if the profile is misconfigured, it will switch settings around and connect anyway. If you can email in to [email protected] with:
    1) a link back to this forum thread
    2) a copy of your Filezilla connection log
    3) a copy of your BC4 (failed) connection log
    we can compare and contrast the two logs to see how they might be connecting differently, and what settings need updating in BC4.
    Aaron P Scooter Software

    Comment

    • RodolfoGiovanninetti
      Veteran
      • Oct 2007
      • 336

      #3
      I am sorry, but it is company data and I am not allowed to send it.
      So, I captured the log of filezilla and edited it to use fake example.
      08:29:28 Status: Connecting to 192.168.0.172:12345...
      08:29:29 Response: fzSftp started
      08:29:29 Command: open "[email protected]" 12345
      08:29:30 Command: Pass: ********
      08:29:30 Status: Connected to 192.168.0.172
      08:29:30 Status: Retrieving directory listing...
      08:29:30 Command: pwd
      08:29:30 Response: Current directory is: "/"
      08:29:30 Command: ls
      08:29:30 Status: Listing directory /
      08:29:30 Status: Directory listing successful
      Then, in B.C.4, I removed the profiles that had been created and also the session.
      I started from zero using new folder compare, with sftp:192.168.0.172:12345
      It asked me the password, I cancelled, then it asked me both user and password, and I type them and it works.
      04/10/2018 08:59:18 Username: RGDOMAIN\administrator
      04/10/2018 08:59:18 Load comparison: <->
      04/10/2018 08:59:38 Connecting to 192.168.0.172
      04/10/2018 08:59:48 Server key [DSS 1024 2f:5d:73:34:8f:6a:30:a5:44:6f:a9:fe:a2:f3:31:a8]
      04/10/2018 08:59:48 Recv> Benvenuti! Si prega di effettuare il login.
      04/10/2018 09:00:01 Keyboard interactive authorization failed.
      04/10/2018 09:00:01 Public key agent authorization failed.
      04/10/2018 09:00:01 No more authentication methods available
      04/10/2018 09:00:01 Connection failed: Connection lost (error code is 10058)
      04/10/2018 09:00:24 Connecting to 192.168.0.172
      04/10/2018 09:00:34 Server key [DSS 1024 2f:5d:73:34:8f:6a:30:a5:44:6f:a9:fe:a2:f3:31:a8]
      04/10/2018 09:00:34 Recv> Benvenuti! Si prega di effettuare il login.
      04/10/2018 09:00:34 Password authorization successful.
      04/10/2018 09:00:34 Server software: GoAnywhere5.4.1
      04/10/2018 09:00:34 Compression: none
      04/10/2018 09:00:34 Encryption: aes256-cbc
      04/10/2018 09:00:34 MAC algorithm: hmac-md5
      04/10/2018 09:00:34 Connected to 192.168.0.172 port 12345
      04/10/2018 09:00:34 Using SFTP version 3.
      04/10/2018 09:00:34 Server information:
      04/10/2018 09:00:34 Current Folder: /
      04/10/2018 09:00:34 drwxrwxrwx 1 0 0 0 Mar 20 2017 Backup
      04/10/2018 09:00:34 FTP parser: x-Scooter-SFTP
      04/10/2018 09:00:34 Load comparison: <-> sftp://[email protected]:12345/
      04/10/2018 09:00:48 Connecting to 192.168.0.172
      04/10/2018 09:00:57 Server key [DSS 1024 2f:5d:73:34:8f:6a:30:a5:44:6f:a9:fe:a2:f3:31:a8]
      04/10/2018 09:00:57 Recv> Benvenuti! Si prega di effettuare il login.
      04/10/2018 09:00:57 Password authorization successful.
      04/10/2018 09:00:57 Server software: GoAnywhere5.4.1
      04/10/2018 09:00:57 Compression: none
      04/10/2018 09:00:57 Encryption: aes256-cbc
      04/10/2018 09:00:57 MAC algorithm: hmac-md5
      04/10/2018 09:00:57 Connected to 192.168.0.172 port 12345
      04/10/2018 09:00:57 Using SFTP version 3.
      04/10/2018 09:00:57 Server information:
      04/10/2018 09:00:57 Current Folder: /
      04/10/2018 09:00:57 drwxrwxrwx 1 0 0 0 Mar 20 2017 Backup
      04/10/2018 09:00:57 FTP parser: x-Scooter-SFTP
      04/10/2018 09:00:57 Load comparison: <-> sftp://[email protected]:12345/

      Thank You and regards

      Rodolfo Giovanninetti

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 15997

        #4
        Hello,

        So deleting the SFTP profile and resetting it works in BC4? Once you connect once, this will also auto-generate a new Profile, and this continues to work, correct?
        Aaron P Scooter Software

        Comment

        • RodolfoGiovanninetti
          Veteran
          • Oct 2007
          • 336

          #5
          Yes, now it is working.


          Regards

          Rodolfo Giovanninetti

          Comment

          Working...