Turns out the problem was that vim on the remote was not compiled with GTK. This happened because the necessary package was not present on the remote box. Thus, even with the --enable-gtk2-check
compile flag set, it was not actually including GTK.
To fix it, log on to the remote machine and:
- Install gtk2-devel,
- re-configure, re-make, & re-install vim
A co-worker figured this out eventually.
First of all, you don't need to connect to your machine in order to display remote programs locally. In fact, it's harder to do it that way. In order to log into a remote server and run a graphical program and see its GUI on your local machine, you will need to activate ssh X forwarding which is done by either the -X
or -Y
options of ssh
:
-X Enables X11 forwarding. This can also be specā
ified on a per-host basis in a configuration
file.
X11 forwarding should be enabled with caution.
Users with the ability to bypass file permisā
sions on the remote host (for the user's X
authorization database) can access the local
X11 display through the forwarded connection.
An attacker may then be able to perform activiā
ties such as keystroke monitoring.
For this reason, X11 forwarding is subjected to
X11 SECURITY extension restrictions by default.
Please refer to the ssh -Y option and the
ForwardX11Trusted directive in ssh_config(5)
for more information.
-Y Enables trusted X11 forwarding. Trusted X11
forwardings are not subjected to the X11 SECUā
RITY extension controls.
So, simply connect to the remote server and rn your application (using xclock
as an example`):
user@local$ ssh -Y user@remote
user@remote$ xclock
That should cause a clock to appear on your local computer screen.
Now, the rest of your problems are probably due to your using your phone as a modem. The IP you get from whatismyip.com is the IP of your telephone, not of your computer. Your telephone is not configured to allow ssh
access so you can't connect to it.
Now, I've never connected through a phone but if I understand your ifconfig
output correctly, your phone's IP is 10.224.108.37
and your computer's local IP is 10.6.6.6
. This means that in order to connect to your computer you would have to somehow configure your phone to forward incoming connections on the ssh port (usually 22) to your IP. I have no idea if this is possible, have a look at your phone's manual.
An alternative would be to set up an ssh
tunnel that goes through your phone. This will only be possible if you have ssh
access to the phone though and that does not seem to be the case.
Anyway, the basic message here is that you almost certainly don't need to connect back to your computer, this looks like a classic XY problem. So, put down the chocolate covered banana... :)
Best Answer
On my windows laptop, pasting into remote
vim
, this is the only thing I could get to work:Ctrl+C was fine for copying.. but I needed Shift+Insert to Paste !
(A good reason to get a laptop where Insert can be accessed without pressing a secondary key)