[ESS] Using ssh from within emacs 22 to connect to another computer and run ess-remote

Charles C. Berry cberry at tajo.ucsd.edu
Wed Aug 27 19:09:34 CEST 2008

On Wed, 27 Aug 2008, Kasper Daniel Hansen wrote:

> I may be completely outdated, but this is what I do.
> Start a shell inside Emacs (M-x shell ). Switch to shell process and ssh to 
> the appropriate server. Start R. Now execute ess-remote (M-x ess-remote). 
> This tells Emacs/ESS that the shell process is really just an R process. You 
> now have R running.

Pretty much the same for me, too. But I issue
 	cd mypath
         stty -echo
         export PAGER=/bin/cat

at the remote host prompt before 'R'.

Find-file handles remote files without (IIRC) any customization.

 	C-x C-f /memyself at myhost.mydomain:mypath RET
 	C-x C-f /ssh:memyself at myhost.mydomain:mypath RET

will pop me into a file/dired buffer after prompting for a password, if 

Nothing special in my .emacs file.



> Only caveat was that last time I used it (and that is some time ago), 
> sometimes C-c C-c would stop the ssh connection instead of just stopping R.

Yes. That IS annoying! :-(

> Kasper
> On Aug 27, 2008, at 8:23 AM, Douglas Bates wrote:
>> I have now spent several hours trying to find out how to do something
>> that I feel should have taken me just a few minutes and I still have
>> no idea how to accomplish this.
>> My computer at work is quarantined behind a firewall because I run
>> Ubuntu on it and not the approved and supported version of RHEL 5.
>> The only way I can connect to other computers inside the department is
>> through ssh and preferably with kerberos authentication.  If I want to
>> connect from a terminal I should run
>> ssh -K -Y desk00.stat.wisc.edu
>> Emacs 22 for Ubuntu has tramp and telnet as part of the system and the
>> tramp documentation tells you all about connections with ssh to edit
>> files on remote machines.  Similarly ESS describes using ess-remote.
>> However, I feel that I am missing out on something terribly obvious
>> because after a few hours of reading documentation and source code I
>> still have not found out what I can do to create an ssh connection to
>> another machine.
>> The ESS documentation lists an ftp site for an ancient elisp file
>> ssh.el but I can't believe that this is a) necessary and b) up to date
>> with current capabilities in telnet.el and tramp.el.  Is it really
>> true that the only way to get an ssh connection to a remote machine
>> from within emacs 22 is to load a 10-year old elisp file?  It is
>> bizarre that there is a supported telnet function and no supported ssh
>> function.
>> I feel like a new R user who is convinced that you can do something in
>> R but just cannot find the necessary function to accomplish it.
>> Is it as simple as modifying the variable telnet-host-properties?  The
>> documentation seems to indicate that I could somehow define an
>> "element" of that variable but in that grand elisp tradition there is
>> absolutely no indication of how I would do that.
>> ______________________________________________
>> ESS-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

More information about the ESS-help mailing list