WARNING: UNPROTECTED PRIVATE KEY FILE! when trying to SSH into Amazon EC2 Instance

I’ve chmoded my keypair to 600 in order to get into my personal instance last night, And this is the way it is supposed to be. From the EC2 documentation we have “If you’re using OpenSSH (or any reasonably paranoid SSH client) then you’ll probably need to set the permissions of this file so that … Read more

Chmod recursively

You can use chmod with the X mode letter (the capital X) to set the executable flag only for directories. In the example below the executable flag is cleared and then set for all directories recursively: ~$ mkdir foo ~$ mkdir foo/bar ~$ mkdir foo/baz ~$ touch foo/x ~$ touch foo/y ~$ chmod -R go-X … Read more

How do I make Git ignore file mode (chmod) changes?

Try: git config core.fileMode false From git-config(1): core.fileMode Tells Git if the executable bit of files in the working tree is to be honored. Some filesystems lose the executable bit when a file that is marked as executable is checked out, or checks out a non-executable file with executable bit on. git-clone(1) or git-init(1) probe … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)