Does getting disconnected from an SSH session kill your programs?

Edit for 2016: This Q&A predates the systemd v230 debacle. As of systemd v230, the new default is to kill all children of a terminating login session, regardless of what historically valid precautions were taken to prevent this. The behavior can be changed by setting KillUserProcesses=no in /etc/systemd/logind.conf, or circumvented using the systemd-specific mechanisms for … Read more

SFTP logging: is there a way?

OpenSSH versions 4.4p1 and up (which should include the latest version with CentOS 5) have SFTP logging capability built in – you just need to configure it. Find this in your sshd_config (in centos, file /etc/ssh/sshd_config): Subsystem sftp /usr/libexec/openssh/sftp-server and change it to: Subsystem sftp /usr/libexec/openssh/sftp-server -l INFO INFO is just one level of detail … Read more

SSH keypair generation: RSA or DSA?

RSA is generally preferred (now that the patent issue is over with) because it can go up to 4096 bits, where DSA has to be exactly 1024 bits (in the opinion of ssh-keygen). 2048 bits is ssh-keygen‘s default length for RSA keys, and I don’t see any particular reason to use shorter ones. (The minimum … Read more

SSH Suddenly returning Invalid format

Check the contents of key_name, if the agent says invalid format, then there’s something wrong with the key – like .. are you sure that’s the correct key? Even if it’s not the private key you need, the ssh agent won’t return invalid format if the key is working, you simply won’t be able to … Read more

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