by Aromal Rajagopal | Oct 21, 2009 | Quick fixes, Technical |
Issue : The SSH connection times out on few minutes of inactivity. Fix : Most likely, you are using SSH protocol 2 . To get around the above problem, you can simply increase the ClientAliveInterval in the file /etc/ssh/sshd_config to (say) 300...
by Aromal Rajagopal | Sep 29, 2009 | Quick fixes, Technical |
Issue : After allocating jailshell , the user is not able to use commands like ‘ls’ , ‘touch’ , ‘mkdir’ etc. within his own home directory. Fix: Try the following steps : 1. Get into the directory /home/virtfs/username/home/ via SSH...
by Aromal Rajagopal | Sep 18, 2009 | Quick fixes, Technical |
Issue : How to check successful and failed SSH logins to the server ? Solution : Use the following commands (as root) to achieve this : last | less This captures data from /var/log/wtmp and shows you the successful logins. lastb | less This captures data from...
by Aromal Rajagopal | Aug 19, 2009 | Quick fixes, Technical |
Issue : How to go about setting up backups using SSH so that backups of every account are uploaded automatically from server1 to server2 ? Solution : 1. Make SSH password less (key based) from destination to source. 2. Run a rsync from destination to get files from...
by Aromal Rajagopal | Aug 13, 2009 | Quick fixes, Technical |
Issue : How to allow SFTP but disallow shell-level access ? Solution : To allow SFTP access but without shell access, you must first enable (jailed) shell via WHM. But then run the following so they do not have command line/shell access: usermod -s...