LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stupid telnet question (https://www.linuxquestions.org/questions/linux-newbie-8/stupid-telnet-question-23351/)

KevStA 06-13-2002 01:04 PM

Stupid telnet question
 
Hi guys,

I got a fairly stupid telnet question, I've got a spair machine on my network, which is setup with telnet for a friend so that he can mess about with it for a bit...e.g. some linux commands etc. Anyway, i setup my router to forward port 23 traffic into my network. Theres only one thing that i would like to change though.

When i login, i see

Quote:

Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.7-10 on an i686
login:
How do i change this?

There is no specific reason why i want to change this, i just feel like it :D ;)


Thanks.

neo77777 06-13-2002 01:13 PM

edit /etc/issue and/or /etc/issue.net

KevStA 06-13-2002 01:30 PM

hehehe, I tried /etc/issue which didn'n't work, and then I realised your edited you post and /etc/issue.net worked. :p

Thanks for your help.

Edit: Grammar, *need to slow down when replying :D*

sewer_monkey 06-13-2002 01:42 PM

Be careful, though, I've seen RedHat 7.x overwrite both of these files on startup (I think the script responsible for this is /etc/init.d/network, if I am not mistaken)... This behavour might have been removed from 7.2 and 7.3, though...

KevStA 06-13-2002 01:47 PM

Thanks for the advise sewer_monkey, i did it and seemed to work perfect...so we'll see when i shut down and power backup :)

KevStA 06-13-2002 02:03 PM

In /etc/issue.net i put

welcome to my telnet server.
etc

How can i show the ip of the person trying to connect, e.g. if i connect from one of my nodes on my network. i want it to say:

welcome to my telnet server <IP of the node that is trying to connect>
etc.

How Would i do this?

Thank you for your help and patience :p

wartstew 06-13-2002 04:05 PM

Running telnet on the public internet these days is a security risk. You should look into using SSH (Secure Shell) instead.

KevStA 06-13-2002 04:19 PM

Yes, i am fully aware of that, like i said. Its being port forwarded to a machine, that i do not use thus not bothering me. I researched into possible attacks etc. This is why the machine is only being turned on, when my friend asks. ;) :)

sewer_monkey 06-13-2002 05:48 PM

Quote:

Originally posted by KevStA
In /etc/issue.net i put

welcome to my telnet server.
etc

How can i show the ip of the person trying to connect, e.g. if i connect from one of my nodes on my network. i want it to say:

welcome to my telnet server <IP of the node that is trying to connect>
etc.

How Would i do this?

Thank you for your help and patience :p

Hmmmm... I think you're just stuck with the possibilities listed in the issue.net man page. For some reason http://man.linuxquestions.org/ lacks that particular man page, but here it is in all it's glory: ;)
Code:

ISSUE.NET(5)              System File Formats Manual              ISSUE.NET(5)

NAME
    issue.net - identification file for telnet sessions

DESCRIPTION
    The file /etc/issue.net is a text file which contains a message or system
    identification to be printed before the login prompt of a telnet session.
    It may contain various `%-char' (or, alternatively, '\-char') sequences.
    The following sequences are supported by telnetd:
          %l    - show the current tty
          %h, %n
                  - show the system node name (FQDN)
          %D, %o
                  - show the name of the NIS domain
          %d, %t
                  - show the current time and date
          %s    - show the name of the operating system
          %m    - show the machine (hardware) type
          %r    - show the operating system release
          %v    - show the operating system version
          %%    - display a single '%' character

FILES
    /etc/issue.net

SEE ALSO
    telnetd(8)

Linux NetKit (0.17)              May 22, 1994              Linux NetKit (0.17)


KevStA 06-13-2002 06:31 PM

Thanks for the help sewer_monkey :)

Edit: i didn't think of doing man issue.net, although i did do man /etc/issue.net which showed whats in the file. :p :)


All times are GMT -5. The time now is 07:32 PM.