man expect

However, it's a bad idea to have a script that telnets in without any 
prompting to the user.  Telnet, itself, is inherently insecure, of its own 
accord, as it sends the username and password out in clear text, and 
there's no encryption of the session, either.

Add to that, now that in your shell script, you'll have to store the 
user's name and password, and the wrong people might be able to get that 
information.

If you really want your users to be able connect to another system, 
without having to be prompted for username/password, then you should be 
using ssh to connect to the remote server, and publickey authentication to 
eliminate the need for the password.

On Tue, 13 Aug 2002, Roger wrote:

> Hi
>  
> I want to have a shell script for telnet, the other users must use it
> without any interactivities, I remember there is a way in shell
> programing that we can write some commands of some applications in shell
> script , such as open, user, passwd of ftp, bash would transfer these
> commands to the application it revoke. what can I do?
>  
> Thanks in advance! 
> 



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to