Automation of telnet and ftp | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Automation of telnet and ftp

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-02-2001
asutoshch asutoshch is offline
Registered User
 
Join Date: Mar 2001
Last Activity: 4 January 2013, 3:32 AM EST
Location: Calcutta, India
Posts: 75
Thanks: 2
Thanked 0 Times in 0 Posts
Automation of telnet and ftp

I have a basic query. I use telnet and ftp very frequently. I want to do it without spending time in typing username and password everytime. I know that if I have .netrc file which contains server address, username, pasword, then just typing ftp will conect to that server with that username and password. Similarly is it possible to do that for telnet? Will be grateful if someone can help me. Thanks and regards
Asutosh
Sponsored Links
    #2  
Old 11-02-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
 
Join Date: Oct 2000
Last Activity: 7 May 2009, 12:22 PM EDT
Location: Sacramento, CA
Posts: 909
Thanks: 0
Thanked 4 Times in 4 Posts
No. I do not think it is possible. The most you can do is "telnet -l <I>username</I>", but that is not supported on many systems. You can use ssh as an alternative which will do what you want.
Sponsored Links
    #3  
Old 11-02-2001
dabrock dabrock is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 9 November 2001, 4:08 PM EST
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Telnet isn't very secure

I would advise against telnet at all costs if it can be avoided. The username and password get transmitted in clear text. Try ssh2 or even ssh (but ssh and openssh have problems with security) if at all possible. One major advantage of ssh is that you can place your public key on the remote machines and gain auto login abilities.
    #4  
Old 11-02-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
 
Join Date: Oct 2000
Last Activity: 7 May 2009, 12:22 PM EDT
Location: Sacramento, CA
Posts: 909
Thanks: 0
Thanked 4 Times in 4 Posts
Re: Telnet isn't very secure

Quote:
Originally posted by dabrock
Try ssh2 or even ssh (but ssh and openssh have problems with security) if at all possible.
Lets be clear about that: openssh has security issues in versions 1.X. I do not believe that there are any known security problems in the later 2.x versions.
Sponsored Links
    #5  
Old 11-05-2001
asutoshch asutoshch is offline
Registered User
 
Join Date: Mar 2001
Last Activity: 4 January 2013, 3:32 AM EST
Location: Calcutta, India
Posts: 75
Thanks: 2
Thanked 0 Times in 0 Posts
Thanks. But on solaris, telnet -l username works. But that again asks for username and password.
I could not find any documentation on ssh and ssh2. On solaris, it is not working. I work on solaris. Can U tell something?
Sponsored Links
    #6  
Old 11-05-2001
dabrock dabrock is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 9 November 2001, 4:08 PM EST
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
I am aware of at least 3 major problems with OpenSSH recently. These I believe are 2.x versions. 1.x versions have problems associated with SSH1 which have been addressed by SSH2, but the OpenSSH problems recently found (which have been addressed) are 2.x problems in OpenSSH not found in the commercial SSH2, to my knowledge.

I don't have the specifics off hand, but searching through some of the security sites such as Bugtrax should turn these up.
Sponsored Links
    #7  
Old 11-05-2001
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
 
Join Date: Aug 2001
Last Activity: 18 April 2013, 3:03 PM EDT
Location: San Antonio, TX,
Posts: 1,070
Thanks: 0
Thanked 4 Times in 4 Posts
trusted vs non-trusted environments

If your systems exist in a trusted "secure" environment, inside a firewall, and you don't go outside that firewall, then you can use .rhosts and rlogin.
Each user has to be defined on the other system in a .rhosts file in the home directory of the user. For root, it should be in / or /root depending on the version.

Then you can use the command rlogin hostname -l username, and it will get you right in. Your syntax may vary.

Telnet is risky in an exposed environment, but I work for a very large telecom company in Dallas and we use it all the time. The key is to disable the .rhosts file when it is not in use and also restrict it to the System Admin only while preventing users from creating .rhosts files in their home directories. By limiting the use of .rhosts, you can prevent unscruplous users from allowing people into your systems.


I hope that doesn't sound preachy, but it is true. Security doesn't mean shutting everyone out all the time. You have to have a certain level of trust some of the time, for any work to get done.

Sorry, preachy again... I'll get off my soapbox now...


Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
EXPECT script for Telnet automation. Need your support. starchen Shell Programming and Scripting 2 08-12-2011 11:09 AM
Automatically login in the telnet from present telnet Prateek UNIX for Dummies Questions & Answers 2 07-05-2011 10:31 AM
Automation from Windows to Linux - Telnet and su using perl nurainos AIX 1 01-20-2009 10:16 AM
Webpage to Telnet via Perl and Expect: Telnet problem? jondo Shell Programming and Scripting 1 07-22-2008 12:35 AM
X11 automation? dlundh OS X (Apple) 1 04-18-2007 08:20 AM



All times are GMT -4. The time now is 02:06 PM.