From: J G Miller on 8 Mar 2010 18:53 On Mon, 08 Mar 2010 13:21:10 -0800, Todd wrote: > The "-t" flag did exactly what I wanted. But only by a secondary effect. If you had looked at the manual page, you would have found that the correct way to run X11 programs (as is indeed the case with firefox) remotely is to use the -n flag. -n Redirects stdin from /dev/null (actually, prevents reading from stdin). This must be used when ssh is run in the background. A *common trick is to use this to run X11 programs on a remote* machine. For example, ssh -n shadows.cs.hut.fi emacs & will start an emacs on shadows.cs.hut.fi, and the X11 connection will be automatically forwarded over an encrypted channel. The ssh program will be put in the background. (This does not work if ssh needs to ask for a password or passphrase; see also the -f option.) Of course you will not need to enter a password or passphase, because you have set up ssh-agent, correct?
From: Todd on 8 Mar 2010 19:32 On 03/08/2010 03:53 PM, J G Miller wrote: > On Mon, 08 Mar 2010 13:21:10 -0800, Todd wrote: > >> The "-t" flag did exactly what I wanted. > > But only by a secondary effect. > > If you had looked at the manual page, you would have found that > the correct way to run X11 programs (as is indeed the case with > firefox) remotely is to use the -n flag. > > > -n Redirects stdin from /dev/null (actually, prevents reading from > stdin). This must be used when ssh is run in the background. A > *common trick is to use this to run X11 programs on a remote* > machine. For example, > > ssh -n shadows.cs.hut.fi emacs& > > will start an emacs on shadows.cs.hut.fi, and the X11 connection > will be automatically forwarded over an encrypted channel. > The ssh program will be put in the background. > > (This does not work if ssh needs to ask for a password or > passphrase; see also the -f option.) > > > Of course you will not need to enter a password or passphase, > because you have set up ssh-agent, correct? Interesting. I am asked for a password. No clue about ssh-agent. I am running in a totally secure environment by the way. Thank you! -T
From: The Natural Philosopher on 8 Mar 2010 20:13 Todd wrote: > I am running in a totally secure environment by the way. > You cant be. we can see your posts.
From: J G Miller on 8 Mar 2010 21:28 On Mon, 08 Mar 2010 18:17:26 -0800, Todd wrote: > I actually do not need it as everyone is on the safe side of the > internal network. But you said, "I am asked for a password." I guess you enjoy typing in your password all the time.
From: Chris Davies on 9 Mar 2010 09:48 Todd <todd(a)invalid.com> wrote: > RunFirefox () { > tmp=`ssh -l todd -t -X 192.168.255.185 /usr/bin/firefox \ > --no-remote" << -EOF > $Password > EOF` > return $? > } 1. I thought you said you were running in a secure environment? 2. If this is what you're trying to do, go back to take a look at the -f flag which I recommended to you a few posts back Chris
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: old laptop rebirth with 32 meg ram with wireless Next: Is google sabotaging browsers? |