ssh -X email@example.com and asks for a password, I type it in and get logged in.
then nothing happens, when it should actually pop up. Why is this happening and how do I solve it?
The problem is that the SSH connection is not forwarding X11 commands over the connection.
If the machine you are using to connect is running Linux (or another OS with X) then simply pass the
-X param when invoking SSH.
It sounds like your DISPLAY variable is getting set somewhere. When I SSH into my machine from my phone (with X forwarding) and run the following:
oli@bert:~$ echo $DISPLAY localhost:10.0
Though it's not a guarantee, X forwarding tends to use high display numbers.
~/.bashrc is set to override the display, you'll likely see something more like like
You can either guess and over-override the
DISPLAY variable to
localhost:10.0 after you connect:
Of find where you're setting display in your local bash files.
I should add that it's possible to turn off X forwarding in the SSHd settings (
/etc/ssh/sshd_config) so you might want to check that too.
Oliver's solution is the way to go if you want to forward X, but understand that this may be bandwidth-intensive.
An alternate solution is to use a command line editor like
nano. Personally, I would go with
vim. It does have a steeper learning curve, but once you get past that, you will not want to go back to anything else =) You can start learning it by executing
vimtutor for a tutorial on the basics.