New answers tagged

-1

Here is a step by step guide to allow: SFTP access to /home/bob/uploads for user bob Lock bob out of SSH Use username/passwords rather than keys: First, edit your /etc/ssh/sshd_config file: sudo nano /etc/ssh/sshd Scroll down and modify: PasswordAuthentication yes and add this at the bottom: Match Group sftpusers ChrootDirectory %h ForceCommand ...


0

If you are using boto3 you need to call modify_attribute and pass a list of group ids http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.Instance.modify_attribute response = instance.modify_attribute(Groups=['string']) Groups (list) -- [EC2-VPC] Changes the security groups of the instance. You must specify at least one security ...



Top 50 recent answers are included