Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-18-2004, 04:50 PM   #1
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Rep: Reputation: 30
remote login, rlogin is the solution?

hi, i'd like to access to my linux box from a telnet terminal.
and i'd like to see my X window from a remote machine too.

i never have experience on how to setup stuff like that. would anyone please guild me the correct howto to show me how to set that up?

back in school (we were using SGI), what i did was i telent to my school computer, and after login, i was in my shell. then i could even see my X window by typing startx. i'd like to do that on my linux box heheh
Old 02-18-2004, 05:12 PM   #2
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
I would highly recommend SSH (Secure SHell) which comes with many Linux distributions. It supports X forwarding.

The one reason I wouldn't recommend rlogin or telnetd is security. Those protocols are dangerous to run; they are not nearly as secure as SSH. I use OpenSSH and I like it a lot.
Old 02-18-2004, 05:39 PM   #3
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
I am not an expert at any of this and just use Linux on my two home computers. But, Linux has several options for doing that kind of thing. There is telnet, ssh, or rlogin. A couple of years ago I took a Unix class which was offered online. The university offering the Unix course was 2,000 miles away. I was the only student in the class who was using Linux to connect, every other student was using Windows. For some reason the instructor put up with me doing it differently.

That was over two years ago and I do not remember all the details. With my Linux computer at home I was always able to connect using either telnet, ssh, or rlogin. All three worked well. When running Windows ME all I ever used was telnet. I am not sure if Windows offered any other choices or not.

I used ssh most of the time because I was under the impression that it was the most secure. I wish I could tell you all the exact details but I probably should not try to do that from memory. There is a difference between being a ssh client and an ssh severer. To run an ssh server the correct daemon needs to be installed and running. I belive it is also possible to say that the users can not log in as root. Does anything happen when you type ssh when running Linux? If it responds it might possibly be either the ssh client or the ssh server.

When using any of those three methods to connect you find yourself logged in the Linux command line mode. When using rlogin, I sometimes would open an xterm window and from it run a few GUI programs. I may have also done that while using ssh but can not remember for sure. Once again I do not recall the exact details. I was doing that with Linux. I believe that it is also possible to use Windows to remotely open an xterm Window from a Linux or Unix server. I do not recall what the Windows users in the class did. Perhaps someone else can povide more specific details. To see what a local xterm window looks like just type xterm.

One odd thing about X-Windows is that it was designed with client/server use in mind. The display is sometimes on a different machine.
Old 02-18-2004, 08:36 PM   #4
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
thanks for the imput, peace and Rick485....

so if i install openSSH... and if i wanna connect to my linux box from a remote machine, that remote machine needs ssh also, right?
can't do base on a normal telnet right?

good news for my network is that my ISP changes IP address changes all the time. (everytime i reconnect to the internet i got diff IP)
so pretty much only me know where to connect.
Old 02-19-2004, 01:58 AM   #5
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
To use ssh both compters would need ssh. To use telnet both computers would need telnet. To use sftp both computers would need sftp, and so on. I have not done that recently so just now I decided to try using ssh between my two computers. Back when I installed Red Hat 8.0 on my old computer I chose to included some of the server software during installation. My newer computer uses Red Hat 9 and I did not install much server software on it. I did choose to include the client versions.

On the old computer I went to the /etc/init.d directory and looked to see if sshd was there or not. The SSH daemon is sshd and fortunately it was there. The next question was is it running, so I typed this:

/etc/init.d/sshd status

It said that it was already running. If it had not already been running I would have typed /etc/init.d/sshd start. That would only start it manually and would not make it start each time on its own. I will skip how a person would make it start automatically each time because I do not know how to do that. On my old computer I then typed this command to find out what the computer's IP address was:


I then moved over to my other computer and decided to log in as a client. I do not remember what the actual IP address was so I will use a different number in this next step. To log in as a client I typed this:


It asked me for the password on my old computer and I was then logged on. It did not ask me for my user name, so in this situation must have assumed that it would be the same user name that I was currently using on the other computer. So anyway, when I typed ls I could tell that I I was looking at what was on my old computer. In this example I did not give much thought to security because I have a dial-up connection and was not connected to the Internet at the time. Perhaps a real system administrator would do a few details different, I do not yet know much about security..

Next I typed this:

xterm &

Then I typed this:

gedit &

When gedit was running I then looked inside the gedit help menu and clicked "about" and it said gedit 2.0.2. That is the version that I use on my old computer, so I knew that I was running the program remotely. On my new computer I then started gedit and found that it uses gedit 2.2.0 which is not the same version. So I was remotely running gedit which is a GUI program from my old computer.

You mentioned once being able to type startx while on another computer. I do not know how to do that but it probably can be done.
Old 02-19-2004, 03:05 AM   #6
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
There is one other thing that you can do when the sshd daemon is running on the other computer. Starting sshd not only enables ssh but it also enables sftp and scp. While both computers were still running I typed sftp on my newer computer and entered a password. I was then able to use sftp which allowed me to transfer files back and forth between the two computers using ftp commands. Apparently, the iptables firewall on my older computer is set to allow that type of incoming connections. Sometime I should look up what TCP/IP port ssh uses.

I looked at the link that peace provided in his post and found one very interesting thing. It is a list of ssh clients for Windows. I see that Cygwin is on the list. I just remembered that all of the Windows users in that Unix class I took two years ago had to install Cygwin. They did that so that they could practice using Unix/Linux commands while running windows. I wonder if they were using Cygwin to connect with ssh too? I'm not sure. Here is the page that lists how to use ssh from a Windows client:

I would also like to occasionally be able to connect to my old Red Hat 8.0 computer while running Windows 2000. I plan to try one of those programs and give it a try.
Old 02-19-2004, 06:19 AM   #7
Registered: Feb 2004
Posts: 30

Rep: Reputation: 15
SSH clients for Windows

If you want an SSH client for Windows there is no better option than Putty. It's simple, free, and very small.

I even use it when connecting to Cygwin (i.e. I run sshd under Cywgin, then connect to it using Putty from the local machine).

Two thumbs up.

(I have no idea what the URL is, but if you Google for it, then it's the top link.)
Old 02-19-2004, 06:35 AM   #8
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
I do this very thing with VNC and SSH port forwarding.
This site:
will tell you everything you'll need to know.

Good luck.
We're all counting on you.


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
Steam login with Wine - Solution! rubbercash Linux - Software 1 05-07-2005 10:44 AM
Solution: Login XDM Screen instead of KDM jess1975 SUSE / openSUSE 2 04-26-2005 02:51 AM
remote x login instead of local login mandrake-n00b Mandriva 0 04-22-2005 10:19 PM
Remote connection using rlogin santhoshkv78 Linux - Security 1 04-18-2005 06:26 AM
Remote Backup Solution Virtus Linux - Software 2 03-14-2003 06:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:59 AM.

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