Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Mon Aug 03, 2009 12:13 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
glg wrote:
sshd should use ~/.ssh/ no matter what ~ is. So, in this case, it'd be /var/www/domain.com/.ssh/


That can be changed in your sshd_config file.


Code:
     AuthorizedKeysFile
        Specifies the file that contains the public keys that can be used
        for user authentication.  AuthorizedKeysFile may contain tokens
        of the form %T which are substituted during connection set-up.
        The following tokens are defined: %% is replaced by a literal
        '%', %h is replaced by the home directory of the user being
        authenticated and %u is replaced by the username of that user.
        After expansion, AuthorizedKeysFile is taken to be an absolute
        path or one relative to the user's home directory.  The default
        is ``.ssh/authorized_keys''.



* As a side note to the OP, if you are doing something like this, please define a /web folder or the like and have all HTML, PHP, * files in that folder and have your web server serve /web to the world and confine your home dir the /var/www/domain.com/

Quote:
Does it matter who owns the .ssh folder?

Very much so, and permissions have to be set very properly. The owner and group owner should be the user you are attempting to log in as, the .ssh folder will need to be set to chmod 700 and the authorized_keys to chmod 644.

_________________
If it ain't broke, you didn't tweak it enough. If it is broke, use more duct tape.
http://independentchaos.com


Top
   
PostPosted: Sat Aug 08, 2009 12:00 pm 
Offline
Junior Member
User avatar

Joined: Sat May 16, 2009 1:34 am
Posts: 24
Website: http://www.ddsc.com
There is a list of users in /ect/vsftpd that does not allow users on that list access. It just disconnectd base don those users
e.g
ftp cron
disconnected

_________________
Q.E.D

Rob


Top
   
 Post subject: Re: Which FTP Server?
PostPosted: Wed Aug 19, 2009 12:13 pm 
Offline
Newbie
User avatar

Joined: Fri Jun 27, 2008 2:45 pm
Posts: 2
ICQ: 15273611
AOL: Ajai0
Location: New York, NY, USA
cherring wrote:
Hey guys, I was just wondering if anybody had any advice on which ftp server I should use for my linode, security is my number one concern. Are there any with known security holes that I should avoid?



The correct answer of course, is to not run FTP at all (horribly insecure). There are plenty of SFTP/SCP clients available for most platforms which obviate the need to run an FTP server.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group