Automation of telnet and ftp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Automation of telnet and ftp
# 1  
Old 11-02-2001
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
# 2  
Old 11-02-2001
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.
# 3  
Old 11-02-2001
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
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.
# 5  
Old 11-05-2001
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?
# 6  
Old 11-05-2001
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.
# 7  
Old 11-05-2001
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...


Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

EXPECT script for Telnet automation. Need your support.

Dear experts, please help me . I've found simple EXPECT scripts and all works fine. But I need more automation in error handling and sending list of commands/output logging from multiple remote hosts. I have 10 hosts, for example: host1 192.168.1.1 LOGIN1 PASSWORD1 ...... ... (2 Replies)
Discussion started by: starchen
2 Replies

2. Shell Programming and Scripting

FTP automation with special characters in userid

Hi, i am trying to automate an ftp script which is as below.But my user id has special characters(aaa\$ifg). So it is not working correctly.Can anyone help on this?I tried providing both of them in double & singe quoted. But somehow it is not picking the "\". Also tried keeping \ before the... (3 Replies)
Discussion started by: aeroticman
3 Replies

3. AIX

Automation from Windows to Linux - Telnet and su using perl

Here is my requirement to automate the deployment procedure for my project. Telnet to AIX box (say SERVER1) from windows machine (with USER1) Select the server to login say "SERVER2" su as different user say "USER2"(Owner of the deployed files) Execute the script (Script has so many... (1 Reply)
Discussion started by: nurainos
1 Replies

4. Shell Programming and Scripting

FTP automation script

Hi, I have got a requirement like this. a parameterized function custFtp which will take 5 i/ps and will do the following tasks. p1) server name p2) username p3) password p4) path name of the server where the file resides p5) file name pattern the function will work like this. ... (1 Reply)
Discussion started by: ani_datta
1 Replies

5. Shell Programming and Scripting

How to track exit status of ftp automation

ftp automation code is ftp -v -n -i $host_name << EOF user $u_name $u_pass bi mput $tar_file bye EOF How to check whether the file is successfully transfered or not. Suppose the user name or password is provided wrongly then the code should track the error and ask the end user to enter... (2 Replies)
Discussion started by: Dip
2 Replies

6. UNIX for Advanced & Expert Users

FTP automation Job scheduling

Hi, I am working in Unix and Teradata fastload. I need to automate file transfer through ftp from windows path to Unix directory at a specific time, then I should call fastload scripts execution. I have got the fastload script. Entire process should be automated without any manual intervention. It... (1 Reply)
Discussion started by: SATYAPRIYA_D
1 Replies

7. Cybersecurity

FTP Automation Windows <> Unix <> Remote

Hi All, I am a newbie to unix and scripting. I need to do the following job: 1. Create a batch file in windows that will call a script in a remote unix box. 2. The script now ftp files from the Remote windows machine and get them back to the local windows. Actually, I have written the script... (3 Replies)
Discussion started by: Ankur
3 Replies

8. Filesystems, Disks and Memory

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

9. UNIX Desktop Questions & Answers

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

10. UNIX for Dummies Questions & Answers

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies
Login or Register to Ask a Question