LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Telnetting in Linux (https://www.linuxquestions.org/questions/linux-general-1/telnetting-in-linux-312479/)

Gins 04-12-2005 01:31 PM

Telnetting in Linux
 
I am running Mandrake Linux 10.1 version.

I just want to know the existence of telnet command in Linux. It works fine in my Windows XP side.

I did the following:

[ka@c83-250-89-254 ka]$ cat /etc/shells
/bin/bash
/bin/csh
/bin/sh
/bin/tcsh
[ka@c83-250-89-254 ka]$ cd /bin
[ka@c83-250-89-254 bin]$ cd /bash
bash: cd: /bash: No such file or directory
[ka@c83-250-89-254 bin]$ cd /csh
bash: cd: /csh: No such file or directory
[ka@c83-250-89-254 bin]$ telnet
bash: telnet: command not found
[ka@c83-250-89-254 bin]$

It is my understanding the telnet command is in bash. I may be wrong.

Why it didn't find the telnet command here?

{BBI}Nexus{BBI} 04-12-2005 01:50 PM

Simply typing telnet from the command prompt gave me this:

[xxxxx@xxx-xxxxxxxxx xxxxx]$ telnet
telnet>

tangle 04-12-2005 01:51 PM

You can do a whereis telnet and see if it is installed on your system. If it is not, then you will need to install it.

Gins 04-12-2005 02:03 PM

[ka@c83-250-89-254 ka]$ whereis telnet
telnet:

[ka@c83-250-89-254 ka]$ telnet
bash: telnet: command not found
[ka@c83-250-89-254 ka]$


The command whereis telnet worked fine.

The simple telnet command didn't work.

Why is this?

tangle 04-12-2005 02:27 PM

The whereis command did not show a path to the executable. If it was there is would output telnet: /bin/telnet or something like that. Telnet is not installed on your system.

Gins 04-12-2005 02:39 PM

Could you please tell me a site to download telnet package?

Please tell me the exact site so as to click and download. I know how to decompress a tarball.

tangle 04-12-2005 06:08 PM

It should be on the Mandrake CD set. Or download it from their site.
http://ftp.ale.org/pub/mirrors/mandr...-2mdk.i586.rpm
http://ftp.ale.org/pub/mirrors/mandr...-2mdk.i586.rpm

archdev 04-13-2005 03:03 AM

I guess even more importantly, isnt using telnet not really a great idea vs using ssh?

tangle 04-13-2005 07:03 AM

Sometimes you have an old system that uses telnet. We have an old, in 10 years old HP UNIX server that runs our MRP system at work. We use their telnet client to connect to it. I personually would use ssh, but most things are not under my control.

frieza 04-13-2005 09:09 AM

can't ssh be installed on an hp unix server? have you tried convincing those in charge to try? I would/

Gins 04-13-2005 09:23 AM

I downloaded the file from the website you have mentioned.

Afterwards, I logged on as a root user and tried in vain to open it. Please read the following:

[root@c83-250-94-237 ka]# tar -xvzf telnet-client-krb5-1.3.4-2mdk.i586.rpm

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
[root@c83-250-94-237 ka]#

What is the problem?

tangle 04-13-2005 09:31 AM

Yes, ssh can run on the HP server.

I have suggested open source prodjects before. They do not like them because they mostly offer little or no support contracts and all the admins(except one) are Windows trained only. We did put in a Squid proxy a while back though.

The branch I work at is a step child and they give little or no concern for us. It takes over a month to get a new PC, if that tells you something.

One example is, they are looking into setting up webmail. They rather spend the 10,000's of dollars on a MS program than look into stting up Squirrelmail or TWIG. Both will run on Windows and work with exchange.

Another on, we are implementing an new MRP system right now. It is over 2 years behind schedual.

Let me put it this way. Up until 4 months ago, We had no password rules. We had users that had passwords that where their first or last names. The managers name is Jim, his password was jim. That should say it all.

If I had my way, they would have ssh running on the UNIX server. But I do what I am told to do and fix the problems that arise. It is not worth the hassle, that is why I went back to college. In May I will graduate and then onto bigger and better places, hopefully a Linux place (hehe).

tangle 04-13-2005 09:33 AM

Sorry Gins, the files are not tarballs, they are RPMs. To install them do this.

rpm -i <name of the file>

If you only need the client, just install the client. Telnet is insecure and should not be used since it passes passwords in plain text. If you need to remotely admin a server, use ssh (OpenSSH).

Gins 04-13-2005 10:06 AM

It didn't work. Some libkrb53 is missing. What is this? Please help me.

[root@c83-250-94-237 ka]# rpm -i telnet-client-krb5-1.3.4-2mdk.i586.rpm
error: Failed dependencies:
libkrb53 = 1.3.4-2mdk is needed by telnet-client-krb5-1.3.4-2mdk
[root@c83-250-94-237 ka]#

tangle 04-13-2005 10:12 AM

Go here and download the file.

http://ftp.ale.org/pub/mirrors/mandr...86/media/main/

If you get anymore dependency errors, download them and install them.


All times are GMT -5. The time now is 10:56 PM.