LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2003, 02:14 PM   #1
XtremeDawg
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Rep: Reputation: 0
Telneting to Linux from Windows


I have become responsible for managing a Windows 2000 network. Yippee. Our consultant suggested that we use a Linux box to deal with monitoring for certain security issues. After much thought we decided to go with Mandrake 9.1.

All works well with this computer BUT due to the location of the machine it is necessary to telnet (or use a similar method) to the computer to run these programs. I installed the telnet software on the computer and can telnet to the box but when I try and run the GUI I get the following error.

Using authority file /home/cectwo/.Xauthority
Writing authority file /home/cectwo/.Xauthority
Using authority file /home/cectwo/.Xauthority
Writing authority file /home/cectwo/.Xauthority

Authentication failed - cannot start X server.
Perhaps you do not have console ownership?Xlib: connecti
server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit: unable to connect to X server
xinit: No such process (errno 3): Server error.
Couldnt get a file descriptor referring to the console

I am not familiar with Mandrake enough to know what I'm doing wrong. The last 2 years I' have worked on Windows and AIX. Prior to that it was SCO.

I really need to use the GUI while in a telnet or similar tpe session.

Any help would be appreciated.
 
Old 09-19-2003, 02:18 PM   #2
mikeb222
LQ Newbie
 
Registered: Sep 2003
Location: Woburn, MA
Distribution: Mandrake 9.1
Posts: 25

Rep: Reputation: 15
It's not a good idea to use telnet for anything. Password and all data transmitted in the open. Should consider using secure (encrypted) link like SSH which is s secure terminal / interface.
 
Old 09-19-2003, 02:22 PM   #3
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Ok. Unfortunately, you cannot use a GUI in telnet.

However, all hope is not lost. What you're looking for can be done in one of 2 ways:

1) Vnc
2) MAYBE (I don't know for sure) tunnelling X11 through SSH but that might be only for linux to linux connections.

All you need is for your machine to be running a vncserver (included with mandrake) then you get yourself a vnc client and connect.

As for details on how to do this, well I've never done it from the linux side (I have TightVNC served on my Win2k machine and I use vncviewer in mandrake)...however, I'm SURE a little diligent googling will get you all the info you need.
 
Old 09-19-2003, 02:23 PM   #4
thesnaggle
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 52

Rep: Reputation: 15
yes i would agree that telnet is not the way to do anything remotely use putty
http://www.chiark.greenend.org.uk/~s.../download.html
 
Old 09-19-2003, 04:27 PM   #5
XtremeDawg
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Ok I can get putty to work but it will not allow me to use a GUI. SSH I cannot get to work. Even though I have tried to load the software from the install CD as well as downloading it.

The GUI aspect is a major issue. I guess I'm just not understanding how all this works. Too much Winders in my brain!!
 
Old 09-19-2003, 04:49 PM   #6
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Most times when I work with a *nix box and windows I use Exceed. it allows you to use the *nix GUIs.
 
Old 09-19-2003, 05:08 PM   #7
XtremeDawg
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Who makes that?
 
Old 09-19-2003, 05:39 PM   #8
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Hummingbird makes Exceed.
I've only used it in a work environment so I'm not sure how much it costs...
http://www.hummingbird.com/products/...eed/index.html
 
Old 09-19-2003, 05:47 PM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
As tcaptain posted, you can use a combination of putty and VNC to get a graphical interface. This is the way I run my linux box 99% of the time.

First, download VNC to your linux box and install it. You should be able to run vncserver once that is done. When you run vncserver, it will tell you it is running on machinename:X where X is almost always 1. That means vnc is listening to port 5901. If X is 2, then vnc is listening to 5902. Also install a VNC client on your windows box.

Once you have VNC up and running, you need to play with putty a bit to set up the tunnel. Bring up the putty configuration box and go to the tunnels section. At the bottom of the page, You'll see a Source port box. Enter 5901 in that box (assuming vncserver said it was running on 1, if it is running on 2 then use 5902). In the desitination box, enter the IP address of the linux box followed by the vncserver port (ex. 192.169.1.100:5901), Now click on add. Go back to the Session and save it. Now connect with SSH and log in. Finally, go start VNC on your windows box and connect to localhost:1. That should give you a GUI connection to your linux box.

A couple of side points:

By default, vncserver runs twm as it X environment. TWM blows chunks. Get into your ~/.vnc/xstartup file, comment out the part that starts twm and replace it with you X environment of choice.

Get into your firewall and make sure you are blocking ports 5901 and 5902. You want to be sure that VNC can't connect on its own, but has to go through the SSH tunnel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telneting through java ambuj Linux - Software 2 08-19-2004 06:59 AM
Question about telneting... diam0nd Linux - General 3 11-26-2003 06:52 AM
TELNETing from me Mac to me Linux PC shusseina Linux - Networking 3 05-03-2003 12:41 AM
Restrict a user from telneting to linux piglingz Linux - Security 3 02-12-2003 11:57 PM
Linux / Irix Compatibility - Remote Shells & Telneting envirodug Linux - General 1 08-07-2001 05:15 AM


All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration