Trying to remotely log in with windows computer

I want to be able to log into remotely to my school's Linux/Unix system so I can work on my labs at home. I downloaded XLaunch, and an SSH Secure Shell Client for windows and made sure to allow X11 forwarding and save the options. I can connect to the schools systems and log into a cslab machine (we have to do ssh -x cslab#) but whenever I try to open a file or create a file I get this error:

[bs655@cslab2 ~]$ gedit hello.cpp
Unable to init server: Could not connect: Connection refused

(gedit:30134): Gtk-WARNING **: cannot open display:

I checked my firewall settings and that is not the problem.
(I have dev-c++ but I need to be on my schools server access files for a program we have assigned to us.)
I hope some knows how to help me.
This isn't a C++ question, or even a programming question.

To answer your question, you have to make sure X11 forwarding is enabled. Should be specified under /etc/ssh/sshd_config.
I did that but it still does not work.

sorry I didn't know where to ask this question, I thought I could do that here
Last edited on
You have to have the X server running on your machine. Is it?


Why use gedit? That is a GUI program, an X-client application.
Why not use some CLI editor? There should be at least vi.
Registered users can post here. Sign in or register to post.