Copiar archivos remotamente con rsync sin confirmar clave ssh

En el articulo anterior hice un respaldo de datos desde un servidor GNU/Linux Centos 6 a un disco NAS Mycloud WD usando un archivo .sh pero este archivo debe de ejecutarse con una tarea programada y no debe de solicitar la contraseña del servidor remoto o usuario ssh. Para esto usaremos el comando sshpass.

Este comando hay que instalarlo para eso seguiremos los siguientes pasos:

Instalamos sshpass

yum install sshpass

Si no se puede instalar lo descargamos y instalamos:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/sshpass-1.06-1.el6.x86_64.rpm
rpm -ivh sshpass-1.06-1.el6.x86_64.rpm

verificamos si esta instalando revisando la ayuda

sshpass -h

si todo va a bien ya podemos usarlo en nuestro archivo .sh

sshpass -p 'TUCLAVE-SSH' rsync -avu /home/admin/Documentos/backup/ sshd@192.168.1.253:/mnt/HD/HD_a2/Public/backup/

ahora lo ejecutamos en una tarea programada

crontab -e

y agregamos

0     12   *    *    *  /ruta/a/archivo.sh

listo!!!

Comentarios

1. El Jueves, Octubre 4 2018, 00:29 por minecraft

Hey! Do you know if they make any plugins to protect against hackers?
I'm kinda paranoid about losing everything I've worked hard on. Any recommendations?

2. El Jueves, Octubre 4 2018, 19:44 por minecraft

Thank you, I have recently been looking for info approximately this subject
for ages and yours is the best I have came upon so far.

But, what concerning the bottom line? Are you sure about the source?

3. El Viernes, Octubre 5 2018, 11:35 por minecraft

Hi there every one, here every one is sharing such knowledge, so it's
fastidious to read this webpage, and I used to go to see this webpage everyday.

4. El Viernes, Octubre 5 2018, 21:27 por minecraft

Thanks for finally writing about >Copiar archivos remotamente con rsync
sin confirmar clave ssh - Creativa Pixel Blog <Liked it!

5. El Sábado, Octubre 6 2018, 14:06 por minecraft

If you would like to get a good deal from this article
then you have to apply such strategies to your won web
site.

6. El Domingo, Octubre 7 2018, 02:46 por minecraft

I do not even know how I stopped up right here, but
I thought this submit used to be good. I don't recognize who you're however definitely you're going to
a famous blogger in case you are not already. Cheers!

7. El Domingo, Octubre 7 2018, 09:49 por minecraft

Hi there just wanted to give you a quick heads up and let
you know a few of the pictures aren't loading correctly.
I'm not sure why but I think its a linking issue. I've tried it in two different web browsers
and both show the same outcome.

8. El Domingo, Octubre 7 2018, 12:58 por minecraft

Hello, all the time i used to check website posts here in the early
hours in the morning, since i like to gain knowledge of more and more.

9. El Lunes, Octubre 8 2018, 11:53 por minecraft free download 2018

great post, very informative. I ponder why the other specialists of this sector do not understand this.
You must continue your writing. I am sure, you have a great readers'
base already!

10. El Lunes, Octubre 8 2018, 18:01 por minecraft free download 2018

I was wondering if you ever thought of changing
the layout of your site? Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content
so people could connect with it better. Youve got an awful lot of text for only having 1 or two images.
Maybe you could space it out better?

11. El Martes, Octubre 9 2018, 07:21 por minecraft free download 2018

Hi, i think that i saw you visited my blog
thus i came to “return the favor”.I'm attempting to find
things to enhance my website!I suppose its ok to
use a few of your ideas!!

12. El Martes, Octubre 9 2018, 14:32 por minecraft free download 2018

I truly love your site.. Pleasant colors & theme. Did you make this amazing site yourself?
Please reply back as I'm attempting to create my own personal website
and want to find out where you got this from or what the theme is named.

Thanks!

13. El Martes, Octubre 9 2018, 19:30 por minecraft free download 2018

Hi! This is kind of off topic but I need some help from an established
blog. Is it tough to set up your own blog? I'm not very
techincal but I can figure things out pretty fast. I'm thinking about making my own but
I'm not sure where to start. Do you have any ideas or suggestions?
With thanks

14. El Miércoles, Octubre 10 2018, 02:53 por minecraft free download 2018

Definitely believe that which you stated. Your
favourite justification appeared to be on the web the simplest thing to keep in mind of.
I say to you, I definitely get annoyed whilst other folks think about issues that they just don't recognize about.
You managed to hit the nail upon the highest and outlined out the whole thing with no need
side-effects , other people can take a signal.
Will likely be again to get more. Thank you

15. El Miércoles, Octubre 10 2018, 04:10 por minecraft free download 2018

Hello friends, its great paragraph concerning educationand completely
explained, keep it up all the time.

16. El Jueves, Octubre 11 2018, 05:54 por minecraft free download 2018

Hi would you mind letting me know which hosting company you're working with?
I've loaded your blog in 3 different browsers and I must say this blog loads a lot faster then most.
Can you suggest a good internet hosting provider at a fair price?
Cheers, I appreciate it!

17. El Jueves, Octubre 11 2018, 09:01 por minecraft free download 2018

I believe this is among the such a lot significant information for me.

And i'm satisfied reading your article. But should statement on few
basic issues, The website style is perfect, the articles is really nice :
D. Just right task, cheers

18. El Jueves, Octubre 18 2018, 07:17 por minecraft secret free download

I like the valuable information you supply on your articles.
I will bookmark your weblog and take a look at once more here regularly.
I'm somewhat sure I'll be told many new stuff right right here!
Best of luck for the following!

19. El Jueves, Octubre 18 2018, 17:39 por minecraft secret free download

Awesome blog! Is your theme custom made or did you download it from somewhere?
A theme like yours with a few simple tweeks would really make my blog jump out.
Please let me know where you got your theme. Cheers

20. El Viernes, Octubre 19 2018, 07:27 por Health Benefits of Coconut Oil

Excellent blog! Do you have any suggestions for
aspiring writers? I'm hoping to start my own website soon but I'm a little lost on everything.
Would you recommend starting with a free platform like Wordpress
or go for a paid option? There are so many options
out there that I'm totally confused .. Any recommendations?
Appreciate it!

21. El Domingo, Octubre 21 2018, 13:47 por Coconut Oil

Thank you for the auspicious writeup. It in fact was once a entertainment account it.
Glance advanced to far introduced agreeable from
you! By the way, how can we communicate?

22. El Domingo, Octubre 21 2018, 14:42 por Benefits of Coconut Oil

I am really impressed with your writing skills and also
with the format for your weblog. Is that this a paid topic or did you
modify it yourself? Anyway stay up the nice high quality writing,
it is uncommon to see a great blog like this one today..

23. El Lunes, Octubre 22 2018, 21:53 por Benefits of Coconut Oil

You actually make it seem so easy with your presentation but I find this topic to be actually
something that I think I would never understand. It seems too complicated and extremely broad for me.
I am looking forward for your next post, I'll try to get the hang of it!

24. El Martes, Octubre 23 2018, 05:25 por Health Benefits of Coconut Oil

I have read several good stuff here. Definitely
price bookmarking for revisiting. I wonder how much attempt you put to make this sort of wonderful informative website.

25. El Miércoles, Octubre 24 2018, 11:27 por Health Benefits of Coconut Oil

Keep this going please, great job!

26. El Miércoles, Octubre 24 2018, 13:18 por Coconut Oil

Hello, I think your site might be having browser compatibility issues.
When I look at your website in Opera, it looks fine
but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other
then that, amazing blog!

27. El Miércoles, Octubre 24 2018, 22:09 por Health Benefits of Coconut Oil

Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your webpage?
My blog is in the very same niche as yours and my visitors would truly
benefit from a lot of the information you provide here.
Please let me know if this ok with you. Regards!

28. El Jueves, Octubre 25 2018, 12:40 por Health Benefits of Coconut Oil

I'm not sure where you are getting your information, however great topic.
I needs to spend a while studying more or working out more.
Thank you for fantastic information I was searching for this info for my mission.

29. El Sábado, Noviembre 3 2018, 13:33 por quest bars cheap

I know this web site provides quality dependent articles or reviews and additional data, is there any
other web page which offers these things in quality?

30. El Sábado, Noviembre 3 2018, 14:37 por quest bars cheap

Great article! We are linking to this great content on our website.
Keep up the great writing.

31. El Domingo, Noviembre 4 2018, 02:01 por quest bars cheap

Fantastic website. A lot of helpful info here.
I'm sending it to a few pals ans additionally sharing in delicious.
And certainly, thanks to your sweat!

32. El Domingo, Noviembre 4 2018, 11:22 por descargar facebook

Descargar facebook http://twitter.com/descargar_hq descargar facebook
I'm really loving the theme/design of your weblog.
Do you ever run into any browser compatibility problems?
A few of my blog readers have complained about my website not operating correctly in Explorer but looks great in Opera.

Do you have any tips to help fix this problem?
Descargar facebook http://twitter.com/descargar_hq descargar facebook

33. El Lunes, Noviembre 5 2018, 01:44 por descargar facebook

descargar facebook http://twitter.com/descargar_hq descargar facebook
Why people still use to read news papers when in this technological world all is presented on web?
Descargar facebook http://twitter.com/descargar_hq descargar facebook

34. El Lunes, Noviembre 5 2018, 14:02 por quest bars

Thank you, I have just been searching for information about this topic for a while and yours
is the best I have found out so far. However, what about the conclusion? Are you positive
in regards to the source?

35. El Martes, Noviembre 6 2018, 12:52 por Quest Protein Bars

Have you ever thought about publishing an e-book or guest authoring
on other blogs? I have a blog centered on the same information you discuss
and would love to have you share some stories/information.
I know my audience would value your work. If you're even remotely
interested, feel free to shoot me an email.

36. El Martes, Noviembre 6 2018, 15:38 por quest bars

I loved as much as you'll receive carried out right here.
The sketch is tasteful, your authored material stylish.
nonetheless, you command get bought an shakiness over that you wish be delivering the following.

unwell unquestionably come more formerly again as exactly the same nearly very
often inside case you shield this hike.

37. El Martes, Noviembre 6 2018, 23:17 por Quest Bars Cheap

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You clearly know what youre talking about, why throw away your intelligence
on just posting videos to your weblog when you could be giving
us something enlightening to read?

38. El Viernes, Noviembre 9 2018, 07:45 por Quest Bars

Hello my friend! I want to say that this article is awesome,
great written and include approximately all important infos.
I would like to peer extra posts like this
.

39. El Viernes, Noviembre 9 2018, 21:51 por What Equipment is Needed for Sling TV

Wow, this article is pleasant, my younger sister is analyzing these kinds of things, thus I am going to let know her.

40. El Sábado, Noviembre 10 2018, 22:41 por Sling TV

I was recommended this blog by my cousin. I'm not sure whether this post
is written by him as nobody else know such detailed
about my problem. You're incredible! Thanks!

41. El Domingo, Noviembre 11 2018, 01:30 por Sling TV

I don't know whether it's just me or if everybody else experiencing problems with your site.
It seems like some of the text in your posts are running off the
screen. Can someone else please provide feedback and let me know
if this is happening to them as well? This might
be a problem with my internet browser because I've had this happen before.
Kudos

42. El Domingo, Noviembre 11 2018, 15:11 por Sling TV

Thanks to my father who stated to me about this web site, this blog
is truly remarkable.

43. El Domingo, Noviembre 11 2018, 16:02 por Sling TV

I have read so many articles or reviews about the blogger lovers however this
piece of writing is genuinely a good post, keep it up.

44. El Domingo, Noviembre 11 2018, 16:19 por Sling TV

Hello to every one, it's in fact a nice for me to pay a quick visit this web
page, it contains precious Information.

45. El Lunes, Noviembre 12 2018, 00:46 por Sling TV

I got this site from my buddy who shared with me about this site and at the moment this time I am visiting this
website and reading very informative posts here.

46. El Lunes, Noviembre 12 2018, 11:11 por What Equipment is Needed for Sling TV

I don't even know how I ended up here, but I thought this post was great.
I do not know who you are but definitely you're going to a famous blogger if you are not already ;) Cheers!

47. El Lunes, Noviembre 12 2018, 11:45 por What Equipment is Needed for Sling TV

Undeniably consider that which you said. Your favourite reason seemed to be at the net the simplest factor to
take into accout of. I say to you, I certainly get irked even as folks think about concerns that they
plainly do not recognize about. You managed to hit the nail
upon the highest and also outlined out the whole thing without
having side effect , other people can take a signal. Will likely be
back to get more. Thanks

48. El Martes, Noviembre 13 2018, 02:32 por What Equipment is Needed for Sling TV

excellent points altogether, you simply gained a brand
new reader. What may you recommend in regards to your post that you just made a few days in the past?
Any positive?

49. El Miércoles, Noviembre 14 2018, 02:35 por What Equipment is Needed for Sling TV

Awesome! Its actually remarkable piece of writing, I have got much clear idea regarding from this
post.

50. El Miércoles, Noviembre 14 2018, 16:26 por Sling TV

Hi! This post couldn't be written any better! Reading through this post reminds me of my previous room
mate! He always kept talking about this. I will forward this write-up to him.
Pretty sure he will have a good read. Thanks for sharing!

51. El Jueves, Noviembre 15 2018, 07:29 por Sling TV

Wow! After all I got a website from where I can in fact take valuable data
concerning my study and knowledge.

52. El Jueves, Noviembre 15 2018, 10:25 por Sling TV

Hello There. I found your blog the usage of msn. This is a very well written article.
I'll be sure to bookmark it and come back to
learn more of your helpful information. Thanks for the post.
I will certainly comeback.

53. El Viernes, Noviembre 16 2018, 14:13 por What Equipment is Needed for Sling TV

It's a shame you don't have a donate button! I'd without a doubt donate to this fantastic
blog! I suppose for now i'll settle for book-marking and adding your RSS
feed to my Google account. I look forward to fresh updates and will share
this site with my Facebook group. Chat soon!

54. El Sábado, Noviembre 17 2018, 13:32 por What Equipment is Needed for Sling TV

Hey! This post could not be written any better!
Reading this post reminds me of my old room mate! He always kept chatting about this.

I will forward this article to him. Pretty sure he will have
a good read. Many thanks for sharing!

55. El Domingo, Noviembre 18 2018, 14:37 por What Equipment is Needed for Sling TV

What's up everyone, it's my first pay a visit at this web page, and
paragraph is actually fruitful in support of me, keep up
posting these types of articles or reviews.

56. El Domingo, Noviembre 18 2018, 18:42 por What Equipment is Needed for Sling TV

Wow, superb blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your website is wonderful,
let alone the content!

57. El Domingo, Noviembre 18 2018, 22:11 por What Equipment is Needed for Sling TV

Hi, I check your new stuff regularly. Your story-telling style is witty, keep it up!

58. El Domingo, Noviembre 18 2018, 22:29 por What Equipment is Needed for Sling TV

Thanks , I have recently been looking for information approximately this
topic for a while and yours is the best I've found out so far.
However, what in regards to the bottom line?
Are you certain concerning the supply?

Añadir un comentario

El código HTML se muestra como texto y las direcciones web se transforman automáticamente.

Discusiones sobre el mismo tema

URL de retroenlace : http://creativapixel.com/blog/index.php?trackback/19

697 reads