Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Member
    Join Date
    Jun 2009
    Posts
    19

    Default Allow SFTP without Shell?

    Is it possible? How would I go about enabling this?

    Thank you.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    It should be by default these days.

    cPanel > FTP Accounts > scroll down to find the username for the account, far right icon Configure FTP Client. There you should see the SFTP Server Port listed for your users.

  3. #3
    Member
    Join Date
    Jun 2009
    Posts
    19

    Default

    Quote Originally Posted by Infopro View Post
    It should be by default these days.

    cPanel > FTP Accounts > scroll down to find the username for the account, far right icon Configure FTP Client. There you should see the SFTP Server Port listed for your users.
    Thanks for replying. I'm not quite finding that. I went into WHM then looked under FTP Accounts but not seeing that option. Hmmmm...

    I also set up a new FTP account in cPanel under a test domain. It also didn't give SFTP settings, only settings for FTP. I do not want to enable Shell access for my customers but feel it's important that they have the ability to upload files via SFTP. I hope there is a way for them to do this.
    Last edited by Selena; 06-22-2009 at 07:41 PM.

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    I never mentioned WHM, I was speaking of in a cPanel account on your server. AFAIK, all users have access to SFTP on a cPanel server by default now.

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,711
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Infopro View Post
    I never mentioned WHM, I was speaking of in a cPanel account on your server. AFAIK, all users have access to SFTP on a cPanel server by default now.
    Correct, in cPanel 11 all cPanel users have SFTP access. However, additional FTP accounts (virtual FTP accounts) do not have SFTP access.

    If the hosting provider is not yet using cPanel 11, please have them upgrade.

  6. #6
    Member
    Join Date
    Jun 2009
    Posts
    19

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Correct, in cPanel 11 all cPanel users have SFTP access. However, additional FTP accounts (virtual FTP accounts) do not have SFTP access.

    If the hosting provider is not yet using cPanel 11, please have them upgrade.
    Thank you. We are using cPanel 11. However, when I select SFTP, it gives an error message telling me the password is invalid. If I set it to FTP, it works. This is using Fetch for Mac.

    Hostname: ftp.mydomain.com
    Username: myusername
    Password: mypassword

    I tried using ports 21 and 22 to see if it made a difference, but it didn't.

    Are there specific settings that I should use for SFTP?

    Thank you.

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,157
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    The port number listed in your cPanel as I mentioned and the IP for the server, will get you in. You'll need to properly config your FTP client as well.
    Last edited by Infopro; 06-24-2009 at 06:06 AM.

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,711
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Selena View Post
    Thank you. We are using cPanel 11. However, when I select SFTP, it gives an error message telling me the password is invalid. If I set it to FTP, it works. This is using Fetch for Mac.

    Hostname: ftp.mydomain.com
    Username: myusername
    Password: mypassword

    I tried using ports 21 and 22 to see if it made a difference, but it didn't.

    Are there specific settings that I should use for SFTP?

    Thank you.
    On some servers, you need to do myusername@primarydomain where myusername is the user's cPanel username and primarydomain is the main domain on their cPanel account.

  9. #9
    Member
    Join Date
    Jun 2002
    Posts
    49

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Correct, in cPanel 11 all cPanel users have SFTP access. However, additional FTP accounts (virtual FTP accounts) do not have SFTP access.

    If the hosting provider is not yet using cPanel 11, please have them upgrade.
    Well if that's the case, how about fixing your page so that it doesn't show any SFTP information for virtual FTP account login details. That way people who create FTP users don't get the impression that they can log in their virtual users over the SFTP port when its obviously not the case.

    Hal

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,711
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by hbouma View Post
    Well if that's the case, how about fixing your page so that it doesn't show any SFTP information for virtual FTP account login details. That way people who create FTP users don't get the impression that they can log in their virtual users over the SFTP port when its obviously not the case.

    Hal
    We are currently working on fixing that page so SFTP information is not displayed when viewing virtual FTP account details. (Internal Case 26282)

  11. #11
    Member
    Join Date
    Jan 2006
    Location
    Mulund, India, India
    Posts
    118

    Default

    I tried to connect to a website using SFTP and was able to do so. However, I can go several levels up the server and can access other directories too except the other websites' directories in the /home directory. This is actually risky as a person can also delete data from the other directories and cause instability to the system. Is there a work around for this?
    Nitesh Shah

    Cheap Managed Dedicated Servers - http://www.qualispace.com/managed-servers/index.html

  12. #12
    Member
    Join Date
    May 2008
    Posts
    1,114

    Default

    Using SFTP you can only see the listing of the directories which is inside the /home directory. No one can modify the other directories except the owner of that directory.

  13. #13
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,711
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by nitaish View Post
    I tried to connect to a website using SFTP and was able to do so. However, I can go several levels up the server and can access other directories too except the other websites' directories in the /home directory. This is actually risky as a person can also delete data from the other directories and cause instability to the system. Is there a work around for this?
    With the way *nix file system permissions work, being able to see a file exists is not the same as being able to view, modify or delete a file.

  14. #14
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    While there are some obvious merits (and some cons) to moving to SFTP transfers, I should take a moment and point out that doing so in response to the recent IFRAME / Index Hacking problems with so many sites left victim will do ABSOLUTELY NOTHING to help you or protect your server!

    If your motivation in switching over to SFTP is something other than these
    recent attacks around the world, then all the power to you.

    If not, and that is your driving motivation, then you may want to re-consider your actions because you are doing nothing to help yourself or your clients.

  15. #15
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Spiral View Post
    While there are some obvious merits (and some cons) to moving to SFTP transfers, I should take a moment and point out that doing so in response to the recent IFRAME / Index Hacking problems with so many sites left victim will do ABSOLUTELY NOTHING to help you or protect your server!

    If your motivation in switching over to SFTP is something other than these
    recent attacks around the world, then all the power to you.

    If not, and that is your driving motivation, then you may want to re-consider your actions because you are doing nothing to help yourself or your clients.
    It might be helpful to explain why?

    - Scott

Similar Threads & Tags
Similar threads

  1. WHM Shell > SCP/SFTP only ?
    By chrismfz in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 08-28-2011, 11:19 AM
  2. Can I allow SFTP without Shell?
    By BraveX in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-23-2009, 01:32 PM
  3. Sorry, the shell, Enable Normal Shell does not exist!
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-15-2007, 08:05 AM
  4. sftp not working with shell access disabled
    By gator in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-31-2005, 10:12 PM
  5. jailed shell access - how does it differ from normal shell?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-04-2004, 12:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube