Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

telnet and ftp w/o prompt for psswd

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all,

I am trying to create a script that will telnet and then ftp without login/passwd prompts. I know that I can use this:

{
ftp -n user passwd << EOF
`commands`
EOF
} >

however, I'm not sure how to bypass the login prompt for telnet.

Thanks!!
 
I don't think that's possible -- but you can do that with rcmd or remsh -- does that mean anything to you? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Hello:

I think that there is no way to make telnet without password if you the user has one, son the only way to do this is to make an user without password or use the rlogin service.

 
Well,

Not sure about HP-UX but in Solaris you can use something like /.netrc which store the FTP info. then it will allows you to pass the login/password prompt. I would recommend you to set the permission to chmod 700 which only user can read this file since it stores your password.

Hope this will help,
-David
 
Oops.. forgot to mention about telnet. Well also in Solaris, you can use rsh or ssh to log onto a server w/out entering in the password. You must create a /.rhost (for rsh) and /.ssh/authorized_keys (for ssh)

Hope this will also help,
-David
 
Hi balnyushka

The use of /etc/hosts.equiv and/or .rhosts in the users home directory should do the trick.
Beware of relaxing security!

Regards
Queenie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top