Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Oct 2007
    Posts
    10

    Default SFTP Login problems

    I am having a problem loging in with SFTP. Here is what I did:

    In the FTP Account Maintenance I created a new user. I then try to login via SFTP and keep getting authentication errors.

    If I try to login with the account normally, it works. If I select SFTP I get a Authentication failed error.

    I can login via SFTP with the main cPanel account for the domain, just not any accounts I add. Can anyone provide insight on how to fix this?

    Thanks

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

    Root Administrator

    Lightbulb

    Does the user have shell access?
    Last edited by Infopro; 11-09-2007 at 11:10 AM.

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    AS Infopro suggests, only accounts that have actual SSH access can use SFTP.

  4. #4
    Member
    Join Date
    Oct 2007
    Posts
    10

    Default

    OK That makes sense since I am creating a FTP user. Is there a way through the cpanel interface to create a shell user account? I started looking at the Create New Account screen but it seemed more oriented to crating a new domain on the box.

    I also need to set the user's home directory and restrict them to that dir...

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    46

    Default

    Quote Originally Posted by nriley View Post
    OK That makes sense since I am creating a FTP user. Is there a way through the cpanel interface to create a shell user account? I started looking at the Create New Account screen but it seemed more oriented to crating a new domain on the box.

    I also need to set the user's home directory and restrict them to that dir...
    Just use FTP with TLS instead.

  6. #6
    Member
    Join Date
    Oct 2007
    Posts
    10

    Default

    Quote Originally Posted by closet geek View Post
    Just use FTP with TLS instead.
    I can't the user requires SFTP. This seriously can't be this hard to do!

  7. #7
    Member
    Join Date
    Oct 2007
    Posts
    10

    Default

    I found this via google http://www.cpanel.net/plugins/xmlapi/createacct.html

    But I think it requires a domain name and does all the apache setup crap too. Right?

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

    Root Administrator

    Default

    Quote Originally Posted by nriley View Post
    OK That makes sense since I am creating a FTP user. Is there a way through the cpanel interface to create a shell user account? I started looking at the Create New Account screen but it seemed more oriented to crating a new domain on the box.

    I also need to set the user's home directory and restrict them to that dir...
    Go to WHM -> Account Functions -> Modify an Account then select the user or domain of the account you wish to modify, then click Modify. Then on the following page, check the box labeled Shell Access and click Save. Note, this will only give them jailed shell access.

    An alternative way is to go to WHM -> Account Functions -> Manage Shell Access as this gives you control over whether the user has no, jailed or normal shell access.

  9. #9
    Member Stefaans's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, Canada
    Posts
    445

    Default

    Quote Originally Posted by cpanelkenneth View Post
    AS Infopro suggests, only accounts that have actual SSH access can use SFTP.
    This comment is not entirely accurate. The full answer depends on your definition of SFTP and the version of cPanel you are using.

    The acronym SFTP is used for at least two different connection methods:
    * SSH file transfer protocol: Since cPanel 11, this does not require shell access. FileZilla is an example of a client that supports SFTP.
    * FTP over SSH (sometimes referred to as Secure FTP): This method does require shell access (I think due to its use of/similarity to scp). An example of a client that uses this protocol is WinSCP.

    My recommendation is to keep shell access disabled (unless needed of course) and use a client such as FileZilla that supports SSH file transfer protocol.

  10. #10
    Member
    Join Date
    Oct 2007
    Posts
    10

    Default

    I manually created a user like I should of from the start and its fine. Thanks for the replay guys. I have a much bigger problem now whenever the server gets rebooted the iptables are reverting to the default settings causing nobody to be able to access the box. Bleh!

Similar Threads & Tags
Similar threads

  1. Initial SFTP login times out
    By S.Hardy in forum Optimization
    Replies: 1
    Last Post: 07-29-2010, 03:21 PM
  2. Unable to login via SSH or SFTP
    By scorched in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-29-2010, 10:54 PM
  3. SFTP-SCP Login Error
    By Sheldon in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-13-2009, 09:12 AM
  4. SFTP login problem on one server.
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-19-2009, 06:48 AM
  5. Replies: 2
    Last Post: 09-29-2006, 12:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube