LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2000, 11:57 PM   #1
todd499
LQ Newbie
 
Registered: Nov 2000
Posts: 7

Rep: Reputation: 0

Hello-

I'm new at linux. I just put it on a computer at work. I'd like to be able to telnet into the linux box. I have the network card working, I'm using redhat 6.2, and I can open a telnet session with the localhost. I think that there must be a file somewhere that you must be able to edit it to allow in different IP addresses. What do I need to do to make this work? Let me know.

Thanks-
Todd
 
Old 11-16-2000, 04:18 PM   #2
torp
Member
 
Registered: Nov 2000
Location: Denmark
Distribution: Slackware, FreeBSD, Solaris10, Suse
Posts: 34

Rep: Reputation: 15
Hey there
you should be able to Telnet to your Linux Box per deafault.

what you have to do is:
1 : add a new user
2 : give the user a password
then you should be able to telnet to you Linux box using that username and password

Perhaps it could be a network problem too.
see. you ip adress might look like this 192.10.0.23 (class C network)
so you have to be shure that all the computers have an Ip Adress within the same Ip range
furthermore they allso have to be on the same submask adress to talk over network
confussed???? I hope not (and sory my english is a bit rusty)

regards Torp
 
Old 11-16-2000, 04:19 PM   #3
torp
Member
 
Registered: Nov 2000
Location: Denmark
Distribution: Slackware, FreeBSD, Solaris10, Suse
Posts: 34

Rep: Reputation: 15
Hey there
you should be able to Telnet to your Linux Box per deafault.

what you have to do is:
1 : add a new user
2 : give the user a password
then you should be able to telnet to you Linux box using that username and password

Perhaps it could be a network problem too.
see. you ip adress might look like this 192.10.0.23 (class C network)
so you have to be shure that all the computers have an Ip Adress within the same Ip range
furthermore they allso have to be on the same submask adress to talk over network
confussed???? I hope not (and sory if my english is a bit rusty)

regards Torp
 
Old 11-16-2000, 11:46 PM   #4
todd499
LQ Newbie
 
Registered: Nov 2000
Posts: 7

Original Poster
Rep: Reputation: 0
Hello Torp-

Those are good suggestions. Here's more info:
The linux box has a static ip of 10.100.1.127 with a subnet mask of 255.255.255.0, other computers on the network user dhcp and have an ip range of 10.100.1.2-10.100.1.252. The scope of 10.100.1.100-10.100.1.130 is reserved in our dhcp server as out of range.

I have a new user added. When I try to telnet to the linux box it says that the destination host is unreachable. I can ping the linux box from other computers on our network. The linux box can also see external web pages.

Using the KDE interface's kpackage, I added telnet server from the redhat linux 6.2 CD. I got and error message asking me to add another package before telnet server would install, so I did that and then loaded telnet server.

I tried rebooting and logging in as root because those things sometimes help in the nt world =) Let me know if you know of anything else to try.

thanks-
todd
 
Old 11-17-2000, 02:59 PM   #5
todd499
LQ Newbie
 
Registered: Nov 2000
Posts: 7

Original Poster
Rep: Reputation: 0
Hello-

Don't worry about posting any suggestions to this reply. I got it figured out. I had to find a used book on linux commands to get it to work. I was using the wrong syntax to open the telnet session at the command prompt. Thanks to all who offered help.

-Todd
 
Old 11-17-2000, 03:56 PM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,607

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
Glad you got everything working! For the sake of others who may make the same mistake - what were you typing? BTW the files that allow you to allow/deny requests by IP are /etc/hosts.deny and /etc/hosts.allow.
 
Old 11-18-2000, 02:00 AM   #7
todd499
LQ Newbie
 
Registered: Nov 2000
Posts: 7

Original Poster
Rep: Reputation: 0
The wrong syntax I was using:

telnet open 10.100.1.127

What it should have been:

telnet 10.100.1.127

-todd
 
Old 11-20-2000, 05:25 PM   #8
todd499
LQ Newbie
 
Registered: Nov 2000
Posts: 7

Original Poster
Rep: Reputation: 0
Hello-

I have another question. The reason that I want to telnet into this linux box is because it is at work. I want to be able to run command line queries from a telnet session at home because I'm trying to get better at security issues. In any case, here's what I'm running into.

When I try to run some commands like traceroute from the command line:

traceroute yahoo.com

it returns:
bash: traceroute: command not found

so then I change directories:

cd /usr/sbin/
./traceroute yahoo.com

when I do this linux know where the file is and traceroute works fine.

What I think that I need to do is to set a Path= statement into a file because the commands I need are in /usr/sbin and /usr/bin.

What file do I need to edit? What is the exact syntax that I need to use?

One more question, what's everybody's favorite place for documentation on linux?

Thanks-
Todd
 
Old 11-20-2000, 05:47 PM   #9
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,607

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
The syntax for adding to your path depends on the shell you use. If you let me know your shell I'll post the proper syntax.

As for the last question, who needs docs when you have LinuxQuestions.org??
 
Old 11-21-2000, 01:54 AM   #10
todd499
LQ Newbie
 
Registered: Nov 2000
Posts: 7

Original Poster
Rep: Reputation: 0
True, this site is a very good resource!

I feel like a newbie here. By shell I hope that you mean what flavor of linux am I running. If that's the case I'm using redhat 6.2 workstation with the KDE gui.

Let me know if you need more info.

thanks-
Todd
 
Old 11-21-2000, 02:55 AM   #11
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,607

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
By shell I mean the login shell that you use. Some examples would be csh, tcsh, and bash. If you are not sure you can look in /etc/passwd or type $0 at a prompt.
 
Old 11-21-2000, 01:18 PM   #12
todd499
LQ Newbie
 
Registered: Nov 2000
Posts: 7

Original Poster
Rep: Reputation: 0
OK, the shell I'm using is bash

I got this figured out too. Here's what I needed to do to make it work. The first this I did was to find out where all the commands were that I wanted to run. I used the find feature and found that the two directories paths that needed to be set were /usr/sbin and /usr/bin

From here, one of the developers that I work with saw me working on this and told me the following. If you go to /etc/profile this is the file that you need. The way that I understand is that profile is that whatever paths that you set in here will be inherited by all users that log onto the machine from a telnet session.

Note: (If you wanted the paths to be specific to the user, and not inherited by all users, then I think you'd have to edit /home/todd(my username in this example) .bash_profile )

The syntax that needs to be used was already in the file! It was:

PATH="$PATH:/usr/X11R6/bin"

So I kept that and added two lines of my own:

PATH="$PATH:/usr/bin"
PATH="$PATH:/usr/sbin"

After that I did a telnet session which I'm thinking ran a new logon which referenced the profile file and new lines, which made it so that I could run traceroute and whois queries without having to be in the directory where these file are located.

-Todd
 
Old 11-21-2000, 02:19 PM   #13
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,607

Rep: Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108Reputation: 4108
Very good! I just have two suggestions. You should really try and use .bash_profile unless it is a sigle user machine. This way only you are effected. Second, you do not need multiple lines. You could just use:
PATH="$PATH:/usr/X11R6/bin:/usr/bin:/usr/sbin"
Glad to see you got things working.
 
Old 11-24-2000, 08:55 PM   #14
Max
LQ Newbie
 
Registered: Nov 2000
Location: CA
Posts: 1

Rep: Reputation: 0
Arrow

One additional suggestion is the following. Whenever you make a change to your .bash_profile, one way to get the system to notice the change is to log out and log back in. A more convenient way is to force the system to reload your .bash_profile by issueing the command:

source .bash_profile
 
  


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
Can't telnet into RH 8 box Eric3 Linux - Networking 15 11-03-2005 02:51 PM
Telnet refused by my linux box murphaph Linux - Networking 10 04-02-2004 01:53 PM
Cannot ping to, telnet to, but CAN use WWW from new linux box chapzilla Linux - Networking 24 06-11-2003 02:46 PM
How do I Telnet (via the web) to a linux box on a Lan.. Simon W Linux - Networking 6 04-15-2002 09:29 PM
Can't Telnet into My Box cheshire Linux - Networking 7 03-20-2001 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:06 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
Open Source Consulting | Domain Registration