SFTP access and user permissions after locking down SSH
Just got started with linode yesterday and things have been going smoothly so far (despite my somewhat noobness to linux). I set up a LAMP stack on Ubuntu with no problems, at which point I was able to use Transmit to SFTP as a root user.
However, then I went through the process of "locking down" my SSH and setting up a firewall with iptables (with help from
What are my options to increase permissions for my user? At the very least I'd like to have access and permissions to change the files in my other user directories, i.e. make changes to the public_html folders in each of my websites so I don't need to keep logging in as a different user.
I also have webmin installed if that helps w/ users and groups.
Thanks for the help!
Vince
4 Replies
Anyone agree or have a better suggestion?
Thanks,
Vince
Do I just need to change permissions on the directories I want to be able to modify? What is the proper way to do this?
Thanks,
Vince
Otherwise you have to SFTP/SCP the files to the users home directory, then ssh in, then sudo up to root, then copy the files, then change the file permissions.
Personally, I set
PermitRootLogin without-password
ChallengeResponseAuthentication no
Gen the certs
And set my Filezilla SFTP client or WinSCP client to login as 'root' with the correct cert.
Just remember to change the ownership/rights as needed.
Of course I'm old school (scientific unix), and don't have the vast fear of using a root account that you young ubuntu fellows seem to have.
YMMV