How to setup crontab to login to other host automatically to fetch some details

Hello, I would like to know how to setup crontab to login to other hosts automatically to fetch some details. I understand that there is is auto ssh trust key setup. But is there any other way except ssh so that I can setup a framework for password less authentication? Thanks!
beer9Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
parparovConnect With a Mentor Commented:
.shosts
public key authentication (user level)
host key authentication (host level)
0
 
nociSoftware EngineerCommented:
You can try kerberos.
0
 
beer9Author Commented:
can we do it using rlogin or rsh or something like that?
0
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

 
nociConnect With a Mentor Software EngineerCommented:
rsh / rlogin have the assumtion that the originating host is reliable, and trustworthy.

So it accepts the claim that my system says i am the root user and that your system should accept that without further proof.
That might hold in a closed network with absolute control on any connection  made to that network...

If i can bring one piece of equipment myself then..., or if there is one system in your network that you don't own...
protocols like ftp/telnet tend to use plaintekst password & usernames, so a little sniffing can help a lot to get furteher access.

kerberos & ssh both allow you to get confidentiality back into your connection, including authorisation & authentication.
0
 
parparovCommented:
shosts would provide you with required rsh functionality without need to send anything unencrypted.
0
 
ArneLoviusConnect With a Mentor Commented:
how about just using rsync over ssh with key based auth to copy the files ?

rsync user@host:/path/to/file /local/destination

Open in new window

0
 
parparovCommented:
ArneLovius,

I understand the device connecting is just an appliance that may not be able to use rsync.
0
 
beer9Author Commented:
Thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.