How do I change my private key passphrase?

To change the passphrase on your default key: $ ssh-keygen -p If you need to specify a key, pass the -f option: $ ssh-keygen -p -f ~/.ssh/id_dsa then provide your old and new passphrase (twice) at the prompts. (Use ~/.ssh/id_rsa if you have an RSA key.) More details from man ssh-keygen: […] SYNOPSIS ssh-keygen [-q] … Read more

ssh returns “Bad owner or permissions on ~/.ssh/config”

I needed to have rw for user only permissions on config. This fixed it. chmod 600 ~/.ssh/config As others have noted below, it could be the file owner. (upvote them!) chown $USER ~/.ssh/config If your whole folder has invalid permissions here’s a table of possible permissions: Path Permission .ssh directory (code) 0700 (drwx——) private keys … Read more

How to automate SSH login with password?

Don’t use a password. Generate a passphrase-less SSH key and push it to your VM. If you already have an SSH key, you can skip this step… Just hit Enter for the key and both passphrases: $ ssh-keygen -t rsa -b 2048 Generating public/private rsa key pair. Enter file in which to save the key … Read more

How to set intervals in cron jobs?

You can do this via wp_cron by using the following, function more_reccurences() { return array( ‘sixhourly’ => array(‘interval’ => 21600, ‘display’ => ‘Every 6 hours’), ); } add_filter(‘cron_schedules’, ‘more_reccurences’); then find the function that does the autopost and call it by if ( !wp_next_scheduled(‘autopost_function’) ) { wp_schedule_event(time(), ‘sixhourly’, ‘autopost_function’); } If you want to use … Read more

SSH Server with WordPress

I don´t have the reputation for a comment, so an answer must do it. WordPress uses (s?)FTP to install updates and plugins. Your SSH credentials are something different and most possibly not those ones of an FTP account. If you want to use the built-in FTP function of WordPress your hostname is normally “localhost” because … Read more

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