Archive for FTP Questions

Securing FTP Access On VPS & Reseller Hosting Accounts

Reseller Hosting

Most of the times many reseller web hosting and vps hosting accounts are begin affected by unauthorised FTP uploads. Unlike vps and reseller hosting, on cpanel hosting accounts we are aware of the domains which are being created and can be altered directly from the systems. However, it is not possible with the vps and reseller hosting accounts as the clients has the flexibility to add any number of domains.

However, we can provide a method in order to secure FTP access to your website for a number of IP addresses or a complete subnet.

Primarily, you need to determine your own IP address first. One of the best way to detect your ip address is to visit www.whatismyip.com website. Once you visit this site it will show your ip address like “Your IP Address Is: xxx.xxx.xxx.xxx”. This is all you need to determine if you are on a static IP address. However, if you are assigned with a dynamic IP address, it means your ip will keep on changing, hence you will need to know the ip addresses you would be assigned.

If you have a static ip address assigned, visit the “Whatismyip” site and click on the “IP WHOIS Lookup” link on the left of the page and then simply click the “Whois Lookup” button. You will see a detailed information about your ip address on the middle of the page. In that information, you should see something like this:

inetnum : 128.0.0.1 – 128.0.0.53

The above figures is the range of the IP addresses you could be assigned.

Now, that you have the possible ip addresses, you can proceed with the following steps.

On your machine, create a file .ftpaccess in a text editor (make sure you put the (.) dot at the beginning of the file name).

If you have a static ip address assigned, put the following content in that file:

<Limit ALL>
DenyALL
Allow 128.0.0.1
Allow 1.2.3.4
</Limit>

The line “Allow 128.0.0.1” should be left in the file as a backup in order to enable you the access to the .ftpaccess file through the Filemanger in the Admin area.

If you are assigned with a dynamic ip address, then you will have to Allow the possible range of ip address based on the example “inetnum: xxx.xxx.xxx.xxx – xxx.xxx.xxx.xxx”. The file contents will look like this:

<Limit ALL>
DenyALL
Allow 128.0.0.1
Allow 1.2.3.
Allow 1.2.4.
Allow 1.2.5.
Allow 1.2.6.
Allow 1.2.7.
</Limit>

Now, as you are done with creating the .ftpaccess file, you just need to upload that file into the httpdocs, httpsdocs and cgi-bin folders on the server. It will restrict all the ip addresses trying to access your site via FTP accept those ip addresses which are Allowed in the .ftpaccess file.

The above change won’t stop blocks on SFTP or WinSCP, if you are going to use only these protocols you could create a file with the following contents.

<Limit ALL>
DenyALL
</Limit>

The above lines will restrict any FTP access to your website. This tutorial is applicable only for the Reseller Web Hosting and VPS Hosting accounts. If you are not familiar with above, you can simply raise a ticket at our support desk and leave the rest on our technical experts.

How to create FTP accounts in Plesk Web Hosting Control Panel

How to create FTP accounts in Plesk Web Hosting Control Panel ?

Creating FTP accounts in Plesk is a very simple task. You simply need to follow the below steps :

Step 1 : Log-in to your Plesk control panel


Step 2 : Look for the option that says “FTP Accounts” and click the same


Step 3 : You should now get an option which states “ Add New FTP Account


Step 4 : Add a desired FTP account name in the adjacent box


Step 5 : You can change the default directory “/httpdocs” by clicking the file icon


Step 6 : Enter the desired FTP password for the account in the two boxes adjacent to the titles “New Password” and “Confirm Password


Step 7 : You must now set restrictions to the disk space you wish to allot to a particular FTP account

Step 8 : Specify the permissions you wish to allow for the user and accordingly check the boxes against “Read permission ” and “Write permission


Step 9 : Click Ok and check using your favorite FTP client whether you are able to login using the details.


How to Delete FTP Account in Plesk ?

An FTP account can be deleted in few simple steps:

Step 1 : In the FTP account manager, you can find a list of FTP accounts

Step 2 : Check the box against the FTP account(s) you wish to delete


Step 3 : On top of the list, you can find an option stating “Remove“, clicking it would display a confirmation screen.


Step 4 : Check the box against Confirm removal and hit the OK tab. This would delete the FTP accounts from Plesk.


No matter if you have an Affordable Web Hosting package or a Dedicated Hosting plan, you can manage your FTP accounts using the FTP Manager.

If you need assistance with creating FTP accounts, please contact our support department via. Live Chat or raise a ticket stating the domain for which you wish to create FTP account(s).

How to check if the default FTP port 21 is blocked ?

Most webmasters might be aware that Port 21 is the default Transmission Control Protocol (TCP) for establishing an FTP connection. At times users face problems with FTP connections. There may be a chance that your ISP would have blocked the port 21, resulting in connection errors for you.

In such a case users can quickly check if the Internet Service provider has blocked port 21. Below is how you can check that based on the operating system you have.

Status Check of port 21 for Windows Operating System

Go to Start menu tab. Then run ‘cmd’ which will take you to the command prompt. There in the command prompt or DOS prompt you must type the following command and hit Enter:

telnet yourdomainname.com 21

OR

telnet 123.456.789.86 21

Status Check of port 21 for Linux Operating System

Using your favorite terminal emulator you can run the below command to telnet your site:

telnet yourdomainname.com 21

OR

telnet 123.456.789.86 21

Note: You must replace yourdomainname.com with your website address or with your website/server IP (Internet Protocol).

The below screenshot shows that the FTP port 21 is blocked by the ISP :

FTP Port 21 blocked

Q. Where can I find an FTP program?

Q. Where can I find an FTP program?

Ans :- Most web publishing programs like Frontpage and Dreamweaver contain built-in FTP capabilities. If you need to find a standalone FTP program, you’ll be able to find some at http://www.download.com/ by searching for “ftp client” or try “WS FTP Pro” from ipswitch.com or www.SmartFTP.com, www.coreftp.com etc.

Dreamweaver Website Hosting

Q.How do I upload my site made with Dreamweaver ?

Ans :- We will provide you with the FTP login once you signup. You can use those details to upload your website. Make sure that you upload your contents inside the public_html directory once you signup and connect using FTP login information. In the case of you using a Windows Web Hosting package, you will need to upload your web contents inside the www directory.

For an FTP connection through browser you will need to put following URL in the browser :-

ftp://yourusername@yourdomain.com

For IP based connection the URL would be :-

ftp://username@I.P

Dreamweaver Tutorials- http://www.eukhost.com/web-hosting/dreamweaver.php

How do i upload my site, made with Dreamweaver? How do i get my e-mail redirected?

Q. How do i upload my site, made with Dreamweaver? How do i get my e-mail redirected?

Ans. We will provide you with the FTP login once you signup. You can use those details to upload your website. Make sure that you upload your contents inside the public_html directory once you signup and connect using FTP login information. You can setup email redirection from your control panel. You will get those details with the welcome email. You can also take a look at http://www.eukhost.com/support/ to learn more about cPanel control panel.