Hi is there a way to edit files in ssh? There's a variable from a new module that I need to edit regularly and logging in and out through editor is troublesome :/
What do you mean? Like open a PHP file and edit it? If so, there are a number of text editors that should be available on most linux distributions. Most notably are Vim, Emacs, and Pico (in no specific order, though I prefer Vim ). To open a file to edit just type vim yourfile.php Code (markup): or whatever editor you decide to use.
here is a class to connect from php to ssh: http://www.phpclasses.org/browse/package/2477.html to simple edit a file over ssh you can use sed on commandline: http://en.wikipedia.org/wiki/Sed