The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
like ssh telnet Kostantinos UNIX for Dummies Questions & Answers 2 02-05-2007 10:57 PM
Autologin V.V.KUMAR Linux 1 12-20-2006 05:49 AM
sftp/scp autologin devid UNIX for Dummies Questions & Answers 8 01-27-2006 03:38 AM
Telnet vtran4270 UNIX for Advanced & Expert Users 1 09-16-2002 11:17 AM
telnet krishna UNIX for Advanced & Expert Users 4 11-13-2001 02:04 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-30-2007
Registered User
 

Join Date: Mar 2005
Posts: 13
Smile How to do autologin for telnet ?

Hi,

I am interested in logging into some systems via telnet automatically.
I do not want to send any username & password by hand or by script.
Security is not an issue.
It is just a home network.

How do I do it ?.
Is there any file that telnet daemon reads and configures itself to allow auto login ??

I expect the session to be like this.

telnet 192.168.1.50
root#
Forum Sponsor
  #2  
Old 07-30-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
You could do this, with difficulty, but why not just set up key based ssh?
  #3  
Old 07-30-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by RipClaw View Post
Security is not an issue.
It is just a home network.
If security is not an issue why have passwords?
  #4  
Old 07-30-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
Many Windows based telnet clients allow automated login scripts.
'rlogin' that will allow you to log into a second unix system, with out reguiring a userid and password, if the user (either implicitly or explicitly) appears in hosts.equiv

Is rlogin available in Linux?

Last edited by jgt; 07-30-2007 at 01:18 PM. Reason: Realized question related to Linux rather than Unix
  #5  
Old 07-30-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by jgt View Post
Is rlogin available in Linux?
Are you serious? Historically, where did rlogin originate?

However, rlogin, rcp, rsh, rcmd are all really superceded by the ssh family.

You will get better milage understanding how to set up ssh keys than messing around with hosts.equiv and similar.
  #6  
Old 07-30-2007
Registered User
 

Join Date: Mar 2005
Posts: 13
Smile

Actually guys, whenever, I ask about telnet, I get slapped back to SSH
What is the use of SSH on computers that are used for studying & get wiped(by me) every other creepy day

I found a quick & dirty solution.
1> setup busybox 1.6.1 with telnetd selected [make menuconfig, make, make install]
2> #./busybox telnetd [as root]

Telnet from anywhere to your machine.
Viola!, you get root access to your machine , no username & no password asked

Hope it helps somebody too Farewell to RSI (repetitive stress injury)

Still, I would like to learn, the vanilla method of getting it done
  #7  
Old 07-30-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
The reason the ssh is suggested is not just a question of security, there are a whole load of reasons.

1. Normally security is important for the person who asks these questions and they just doesn't realize that yet.
2. What you are doing is a bad habit to get into, do things the right way first so at least you know how to when you actually need to.
3. ssh will allow you to specify commands at the command line and run them, without needing to wait for a login shell to type them
4. You won't need a password, but anyone else who tries to get in will.
5. With ssh + key you get all the other useful features like passwordless sftp, scp and the tunneling capabilities of ssh.
6. You can keep the key on the machine you are not wiping, and copy it across after a reinstall < 15 seconds to get password free login.

I could go on but I don't think there is much need, and I know which option I would choose, not only because it better, but because it is easier.
Google The UNIX and Linux Forums
Closed Thread

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0