Re: open remote terminal



Fabian Braennstroem wrote:
Hi,

I would like to use python to start an terminal, e.g. xterm, and login on a
remote machine using rsh or ssh. This could be done using 'xterm -e ssh
machine', but after the login I would like to jump to a given directory.
Does anyone have an idea how to do this with python?

Regards!
Fabian

pexpect would be the usual solution, I believe, if you could get it to interact correctly with your virtual terminal.

http://pexpect.sourceforge.net/

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden

Sorry, the dog ate my .sigline so I couldn't cat it

.



Relevant Pages

  • Re: open remote terminal
    ... I would like to use python to start an terminal, e.g. xterm, and login on ... a remote machine using rsh or ssh. ... This could be done using 'xterm -e ssh ...
    (comp.lang.python)
  • Re: rsync over ssh with disallowed login
    ... If you want to be able to login using ssh on a ... remote machine without password try to put the key of the user's login ... > same time use it as a backup machine using rsync over the same ...
    (Debian-User)
  • open remote terminal
    ... remote machine using rsh or ssh. ... This could be done using 'xterm -e ssh ... but after the login I would like to jump to a given directory. ...
    (comp.lang.python)
  • Re: SSH login automation, get stuck at the last step.
    ... The ssh server that I am copying the public key to is not a typical ... The user "root" to login this box can not access the ... puts stderr "EXP username requested and sent " ...
    (comp.lang.tcl)
  • SUMMARY: how to set correct path?
    ... ven if we login with ssh. ... For BASH login shell, place the system wide ENV variables, such as PATH, ... You can set Use_login in the sshd_config to yes and restart sshd. ...
    (SunManagers)