For me this error appeared immediatey after I changed the user’s home directory by
sudo usermod -d var/www/html username
It can also happen because of lack of proper permission to authorized_key file in ~/.ssh. Make sure the permission of this file is 0600 and permission of ~/.ssh is 700.
Related Posts:
- AWS Lambda:The provided execution role does not have permissions to call DescribeNetworkInterfaces on EC2
- Putty: Getting Server refused our key Error
- What is difference between Lightsail and EC2?
- What is the difference between Amazon SNS and Amazon SQS?
- Using putty to scp from windows to Linux
- AWS: What does 0.0.0.0/0 and ::/0 mean?
- What is the difference between Elastic Beanstalk and CloudFormation for a .NET project?
- How can I resolve the error “The security token included in the request is invalid” when running aws iam upload-server-certificate?
- DynamoDB – Key element does not match the schema
- How to improve paralelized computing in AWS EC2?
- Forward X11 failed: Network error: Connection refused
- PuTTY PSCP error “Local to local copy not supported” when username contains a slash
- AWS CLI S3 A client error (403) occurred when calling the HeadObject operation: Forbidden
- Convert PEM to PPK file format
- 403 ERROR The request could not be satisfied
- Automating command/script execution using PuTTY
- How can I get the size of an Amazon S3 bucket?
- How to recover from “Too many Authentication Failures for user root”
- AWS RDS connection limits
- ssh connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- Could not open a connection to your authentication agent
- ssh remote host identification has changed
- How to set ssh timeout?
- ssh “permissions are too open” error
- DynamoDB : The provided key element does not match the schema
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- boto3 client NoRegionError: You must specify a region error only sometimes
- What is actually in known_hosts?
- ‘heroku’ does not appear to be a git repository
- What is the difference between Amazon ECS and Amazon EC2?
- Access denied; you need (at least one of) the SUPER privilege(s) for this operation
- How to scp in Python?
- Getting “socket.error: [Errno 61] Connection refused” python paramiko
- “invalid ELF header” when using the nodejs “ref” module on AWS Lambda
- Starting ssh-agent on Windows 10 fails: “unable to start ssh-agent service, error :1058”
- Git error: “Host Key Verification Failed” when connecting to remote repository
- X Error of failed request: BadValue (integer parameter out of range for operation)
- Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel
- Copying files using rsync from remote server to local machine
- Could not create work tree dir ‘example.com’.: Permission denied
- S3 Bucket action doesn’t apply to any resources
- How to read iPhone files without jailbreaking?
- “There was a problem with the requested skill’s response” on Alexa Simulator
- Specify an SSH key for git push for a given domain
- How to ssh from within a bash script?
- Difference between AWS DynamoDB vs. AWS DocumentDB(Newly launched service)? [closed]
- Nginx error: client intended to send too large body
- Is there an Amazon.com API to retrieve product reviews?
- Paramiko’s SSHClient with SFTP
- AWS s3 api error: specified bucket does not exist
- Your WSGIPath refers to a file that does not exist
- Why does WordPress need my private ssh key to update?
- How can I use WP-CLI commands without –allow-root
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- Configure WordPress to connect to Mysql DB using SSH tunneling
- WP-CLI alias: connect with ssh proxy
- WPTerm ssh connection not working [closed]
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- Unable to update WordPress or install plugins/themes
- After upgrade to php 7 plugin/them updates broke [closed]
- How to set intervals in cron jobs?
- Index.php using 100% CPU [closed]
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- Public and Private keys incorrect for user
- Configuring WordPress permissions for easy updates
- Force Jetpack to use og:url with http on an https website
- I can’t login to wordpress dashboard without SSH
- ssh returns “Bad owner or permissions on ~/.ssh/config”
- How do I change my private key passphrase?
- Can I automatically add a new host to known_hosts?
- Can I nohup/screen an already-started process?
- Create a public SSH key from the private key?
- “Add correct host key in known_hosts” / multiple ssh host keys per hostname?
- Is it normal to get hundreds of break-in attempts per day?
- SSH use only my password, Ignore my ssh key, don’t prompt me for a passphrase
- ssh-agent forwarding and sudo to another user
- how to disable SSH login with password for some users?
- Non interactive git clone (ssh fingerprint prompt) [duplicate]
- What does “Warning: untrusted X11 forwarding setup failed: xauth key data not generated” mean when ssh’ing with -X?
- Amazon Cloudfront with S3. Access Denied
- How do I make ssh fail rather than prompt for a password if the public-key authentication fails?
- OpenSSH: Difference between internal-sftp and sftp-server
- how do you create an ssh key for another user?
- What significance does the user/host at the end of an SSH public key file hold?
- SSH Suddenly returning Invalid format
- What is a good SSH server to use on Windows? [closed]
- SSH keypair generation: RSA or DSA?
- Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?
- Login without running bash_profile or bashrc
- ssh tunnel refusing connections with “channel 2: open failed”
- Show all users and their groups/vice versa
- How do I validate an RSA SSH public key file (id_rsa.pub)?
- What’s wrong with always being root?
- Add comment to existing SSH public key
- Hundreds of failed ssh logins
- ssh connection takes forever to initiate, stuck at “pledge: network”
- protocol version mismatch — is your shell clean?
- bad ownership or modes for chroot directory component
- Is it possible to use rsync over sftp (without an ssh shell)?
- Why is ssh agent forwarding not working?