scp without known_hosts check

scp is supposed to take the same command line options as ssh, try: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null Maybe add -q to disable the warnings as well.

SSHFS mount that survives disconnect

Use -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 The combination ServerAliveInterval=15,ServerAliveCountMax=3 causes the I/O errors to pop out after one minute of network outage. This is important but largely undocumented. If ServerAliveInterval option is left at default (so without the alive check), processes which experience I/O hang seem to sleep indefinitely, even after the sshfs gets reconnect‘ed. I regard this … Read more

Index.php using 100% CPU [closed]

Unless otherwise specified (usually happens on admin side, and image access), all requests to wordpress pass and are processed by the index.php file, therefor it is not very interesting to look at which file is being “run”, you should look more at the request log and how much time it takes to complete each request. … Read more

ssh tunnel refusing connections with “channel 2: open failed”

Problem solved: $ ssh -L 7000:127.0.0.1:7000 user@host -N -v -v …apparently, ‘localhost‘ was not liked by the remote host. Yet, remote /etc/hosts contains: ::1 localhost localhost. 127.0.0.1 localhost localhost. while the local network interface is lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33184 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 Sigh. so … Read more

Can you have more than one ~/.ssh/config file?

The ~/.ssh/config file don’t have a directive for including other files, possibly related to SSH’s check for file permissions. Suggestions around this can include a script to cat several changes together either on the system or via checkin hooks on a repository. One might also look into tools such as Puppet or Augeas. However you … Read more

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