Edit remote files over SSH in TextMate from terminal
Edit files from an SSH session in TextMate
rmate
$ rmate /path/to/remote/file.txt
$ rmate /path/to/file1.txt /path/to/file2.txt
$ cat /path/to/file | rmate -