Re: General Linux?



Mike Klinke wrote:
On Monday 30 April 2007 12:11, Knute Johnson wrote:
Is it possible to ssh to my computer, start a command line
program, exit ssh and then come back later and ssh to the same
command line program? How would I do that exactly?

Use the "screen" command. In essence you would ssh to your target machine, issue the screen command, run your command, detach from the command by using the "<CTRL-a>,d" sequence, then exit from the target machine. Later you could ssh to your target machine, issue the "screen -list" to see your detached session(s) and issue the "screen -r <desired-session>" to reattach to the previously running session. See "man screen" for more details.

Or, if you'd rather do this in a GUI where you can see more than one open window at a time and the only reason you don't is that ssh works better over slow connections, try freenx and the NX client that you can download from http://www.nomachine.com. This lets you start a whole desktop that you can suspend and reconnect and it works very well over remote connections. You can, for example, start a bunch of things in different windows (perhaps even xterms ssh'd to a bunch of other computers), suspend the session, then reconnect from a different place (and perhaps a different client platform) and pick up with everything still running. And it can work where only ssh is allowed in. The initial start-up on a new connection is slower than screen of course since it has to draw the GUI screen, but it is very snappy after that and you can see all of the desktop windows at once if you were doing more than one thing, where with screen you would have to switch among them.

--
Les Mikesell
lesmikesell@xxxxxxxxx

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: sudo and /etc/sudoers
    ... vt7 (this is the command line for Xorg) ... but without ssh running it) ... neglecting to have set up a swap partition during a re-install of Ubuntu. ... I'm aware that ssh is used for secure connections over a network, ...
    (Ubuntu)
  • Re: Really need help on this one
    ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
    (comp.lang.tcl)
  • Re: OT: Hard disk mirror with Paragon on USB stick?
    ... at least two pages of intricate command line stuff. ... The password is only used when you want to backup to a remote machine ... via the network, using the ssh protocol. ... (e.g. with linux, ...
    (sci.electronics.design)
  • RE: midnight commander and ssh sftp
    ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
    (freebsd-questions)
  • Re: sshd and ftpd
    ... ssh keys, so when you log in it doesn't ask for one. ... we want to be able to connect to our remote host without ... If you used the defaults supplied by the ssh-keygen command, ...
    (Ubuntu)