SOLVED Can't connect Dreamweaver via SFTP

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
cPanel Access Level
Root Administrator
Hello,

When adding a project to Adobe Dreamweaver, I have the option to connect to the server via :
  • FTP (Works fine)
  • SFTP
  • FTP over SSL / TLS (Implicit encryption)
  • FTP over SSL / TLS (Explicit encryption)
I can connect using FTP, but it's better to get more secure by using 1 of the other types, but I can't, I get errors. For e.g. if I try SFTP:
  • SFTP address: my server IP address
  • Port 22
  • Username (cPanel username)
  • Password: (cPanel password)
I get this error: an FTP error occurred, cannot make connection to host. The remote host actively refused the attempt to connect to it.

Any idea how to enable SFTP connection to my VPS server ?

Many thanks :)
 

ResellerWiz

Well-Known Member
Mar 24, 2023
150
66
103
USA
cPanel Access Level
Root Administrator
Twitter
Make sure the cPanel account you are using has "Shell Access" enabled in the package, because SFTP requires SSH.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
942
421
363
cPanel Access Level
DataCenter Provider
Have you tested a SFTP connection with a tool like FileZilla to insure that you can connect? I also do not believe that you need shell access to SFTP.
 

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
cPanel Access Level
Root Administrator
Have you tested a SFTP connection with a tool like FileZilla to insure that you can connect? I also do not believe that you need shell access to SFTP.
Yes I tried with Filezilla, I cannot connect using SFTP or FTP over SSL / TLS (Implicit encryption) or FTP over SSL / TLS (Explicit encryption), only FTP works.
 

ResellerWiz

Well-Known Member
Mar 24, 2023
150
66
103
USA
cPanel Access Level
Root Administrator
Twitter
Yes I tried with Filezilla, I cannot connect using SFTP or FTP over SSL / TLS (Implicit encryption) or FTP over SSL / TLS (Explicit encryption), only FTP works.
In order to use FTP over TLS the FTP hostname needs to have a valid service certificate installed.

Since you should have a valid SSL certificate for the server hostname, you should use it for the FTP hostname in FileZilla and test with FTP over TLS and see if it works.

If you still have an issue, you may need to open a ticket with cPanel support so they can take a closer look.
 

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
cPanel Access Level
Root Administrator
In order to use FTP over TLS the FTP hostname needs to have a valid service certificate installed.

Since you should have a valid SSL certificate for the server hostname, you should use it for the FTP hostname in FileZilla and test with FTP over TLS and see if it works.

If you still have an issue, you may need to open a ticket with cPanel support so they can take a closer look.
Yes I have a valid SSL cert for the server hostname, how can I use it in Dreamweaver / Filezilla ?
 

ResellerWiz

Well-Known Member
Mar 24, 2023
150
66
103
USA
cPanel Access Level
Root Administrator
Twitter
In your FileZilla connection settings, simply use the servers hostname for FTP hostname.

So if your servers hostname is server1.mydomain.com that is what you would enter for the FTP hostname in your connection settings in FileZilla.
 

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
cPanel Access Level
Root Administrator
In your FileZilla connection settings, simply use the servers hostname for FTP hostname.

So if your servers hostname is server1.mydomain.com that is what you would enter for the FTP hostname in your connection settings in FileZilla.
Tried to use the host name server.mydomain.com, it worked only for FTP type.
 

ResellerWiz

Well-Known Member
Mar 24, 2023
150
66
103
USA
cPanel Access Level
Root Administrator
Twitter
Tried to use the host name server.mydomain.com, it worked only for FTP type.
You should open a ticket with cPanel support so they can take a look at what’s going on.
 
  • Like
Reactions: psytanium

quietFinn

Well-Known Member
Feb 4, 2006
2,020
541
493
Finland
cPanel Access Level
Root Administrator
Maybe SSh port is not 22, or if it is then port 22 is not opened in firewall :rolleyes:
 

ResellerWiz

Well-Known Member
Mar 24, 2023
150
66
103
USA
cPanel Access Level
Root Administrator
Twitter
Maybe SSh port is not 22, or if it is then port 22 is not opened in firewall :rolleyes:
Possibly, but that doesn’t explain why FTP over TLS isn’t working as well.
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
221
41
153
Houston
cPanel Access Level
Root Administrator
Hello,

I would recommend checking your SSH configuration ( /etc/ssh/sshd_config ) to see whether any setting could be conflicting with your SFTP logins.

For example, as @quietFinn mentioned, the SSH port could be custom or password authentication could be disabled, which may prevent your SFTP logins. Also, checking /var/log/secure for entries with your IP address can help to determine the reason for the login failures. If that still does not help, I'd suggest opening a ticket with our support team so we can get you pointed in the right direction.
 
  • Like
Reactions: cPRex

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
cPanel Access Level
Root Administrator
  • Like
Reactions: ResellerWiz