Author Topic: SFTP Connection fails  (Read 243 times)

mrapi

  • Newbie
  • *
  • Posts: 9
    • View Profile
SFTP Connection fails
« on: Yesterday at 17:27:15 »
Hi
is there any special setting to do? I've put host,user and password,but it is not working,got:

Code: [Select]
Failed to connect
Failed to initialize socket - Cannot connect to server
Connection... Failed!

it works fine in total commander

thanks


Let me know any issue you have with the SFTP/SCP extension.
Normal UserName/Password login should work

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4755
    • View Profile
    • Multi Commander
Re: SFTP Connection fails
« Reply #1 on: Yesterday at 17:39:44 »
Hi
is there any special setting to do? I've put host,user and password,but it is not working,got:

Code: [Select]
Failed to connect
Failed to initialize socket - Cannot connect to server
Connection... Failed!

it works fine in total commander

thanks


Let me know any issue you have with the SFTP/SCP extension.
Normal UserName/Password login should work

I Use SFTP(SSH) daily without issue.

Sure IP and port are correct ?  Maybe FW issue. maybe have outbound block on. and MC need to be allowed allowed to connect out ?
Try enable higher loglevel in Core settings.  might output something more.

mrapi

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFTP Connection fails
« Reply #2 on: Today at 07:51:08 »
hi,tuned off firewall and defender,still not working,that is the full log got:

Code: [Select]
2025-09-19 08:48:37 Codepage not set. Will try to auto-detect if UTF-8 is supported
2025-09-19 08:48:37 No text format conversions  will be done for text file transfers
2025-09-19 08:48:37 Connecting to ftps://....:22
2025-09-19 08:48:37 Connecting failed (GetAddrInfo) : 11001
2025-09-19 08:48:37 Key exchange method : (null)
2025-09-19 08:48:37 Host key method : (null)
2025-09-19 08:48:37 Encryption method (client to server) : (null)
2025-09-19 08:48:37 Encryption method (server to client) : (null)
2025-09-19 08:48:37 MAC (message authentication code) method (client to server) : (null)
2025-09-19 08:48:37 MAC (message authentication code) method (server to client) : (null)
2025-09-19 08:48:37 Authentication handshake failed : No method negotiated
2025-09-19 08:48:37 Closing Session...
2025-09-19 08:48:38 Session closed
2025-09-19 08:48:38 Failed to connect to server
2025-09-19 08:48:38 Connection... Failed!

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4755
    • View Profile
    • Multi Commander
Re: SFTP Connection fails
« Reply #3 on: Today at 07:58:35 »
GetAddrInfo fails with 11001 . and that is HOST_NOT_FOUND.
It fails to resolve IP address
So check your host address.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4755
    • View Profile
    • Multi Commander
Re: SFTP Connection fails
« Reply #4 on: Today at 08:03:37 »
You do not need to specify protocol like ftps:// 
Just enter host name in hostname field

Also you have ftps:// 
that are normally for FTP with SSL/TLS.  Then you need to use the FTP device in MC
sftp:// is used for FileTransfer over SSH. Then you connect to a SSH connection and do filetransfer using that.
« Last Edit: Today at 08:17:39 by Mathias (Author) »

mrapi

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFTP Connection fails
« Reply #5 on: Today at 08:39:42 »
k,I've removed prefix,host responses on ping but ftps not working,got:
Quote
2025-09-19 09:36:43 Codepage not set. Will try to auto-detect if UTF-8 is supported
2025-09-19 09:36:43 No text format conversions  will be done for text file transfers
2025-09-19 09:36:43 Connecting to ...:22
2025-09-19 09:37:04 Failed to connect
2025-09-19 09:37:04 Failed to initialize socket - Cannot connect to server
2025-09-19 09:37:04 Connection... Failed!

thanks

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4755
    • View Profile
    • Multi Commander
Re: SFTP Connection fails
« Reply #6 on: Today at 08:47:26 »
is that all logging ?
If you still get "Connecting failed (GetAddrInfo) : 11001" then hostname is still wrong

« Last Edit: Today at 09:00:52 by Mathias (Author) »

mrapi

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFTP Connection fails
« Reply #7 on: Today at 09:31:57 »
that is all the logging
I ping hostname and it works

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4755
    • View Profile
    • Multi Commander
Re: SFTP Connection fails
« Reply #8 on: Today at 09:42:48 »
Port is correct ?
Firewall allows it

mrapi

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFTP Connection fails
« Reply #9 on: Today at 12:54:49 »
firewall is turned off
for port tried 22,21,990
not working

I give up
thanks


Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4755
    • View Profile
    • Multi Commander
Re: SFTP Connection fails
« Reply #10 on: Today at 14:18:22 »
It should work if entered correctly. But you need to know what port the target wants.  21 is default for FTP 22 default for SSH.  totally different services..
But since it fails to even connect. something is either wrong with host or port.. Or something is blocking it