Drupal coder

Terminal

Keeping SSH connection alive

If you get kicked out of your SSH connection once in a while, your SSH server might have set a maximum amount of time you can be idle.

To overcome this, you can use a little setting in your SSH client configuration file. You should find this file in your home directory as ~/.ssh/config. If it's not there, you should create it. Yout have to add the following line.

ServerAliveInterval 60

You have to set the number of seconds after which the connection should be issued with a dummy statement. So in this example that time is 1 minute (60 seconds).

February 04, 2008OS X, SSH, Terminal, UNIX

How to work from the Terminal command line if you use MAMP?

Put the following code in your .bash_profile in your home folder.

PATH=/Applications/MAMP/bin/php5/bin:\
/Applications/MAMP/Library/bin:$PATH
export PATH
January 21, 2008MAMP, OS X, Terminal