vendredi 11 mars 2011

How To scp, ssh and rsync without prompting for password

Whenever you need to use rsync to copy files, it asks for passwords. Usually scp and rsync commands are used to transfer or backup files between known hosts or by the same user on both the hosts. It can get really annoying the password is asked every time , specially if we need to automate backup with some batch scripts.
Lets say you want to copy between two hosts host_src and host_dest. host_src is the host where you would run the scp, ssh or rsyn command, irrespective of the direction of the file copy!
  1. On host_src, run this command as the user that runs scp/ssh/rsync
    $ ssh-keygen -t rsa
    This will prompt for a passphrase. Just press the enter key. It'll then generate an identification (private key) and a public key. Do not ever share the private key with anyone! ssh-keygen shows where it saved the public key. This is by default ~/.ssh/id_rsa.pub:
    Your public key has been saved in /.ssh/id_rsa.pub
  1. Transfer the id_rsa.pub file to host_dest by either ftp, scp, rsync or any other method.
  1. On host_dest, login as the remote user which you plan to use when you run scp, ssh or rsync on host_src.
  2. Copy the contents of id_rsa.pub to ~/.ssh/authorized_keys
    $ cat id_rsa.pub >>~/.ssh/authorized_keys $ chmod 700 ~/.ssh/authorized_keys
    If this file does not exists, then the above command will create it. Make sure you remove permission for others to read this file. If its a public key, why prevent others from reading this file? Probably, the owner of the key has distributed it to a few trusted users and has not placed any additional security measures to check if its really a trusted user.
  1. Note that ssh by default does not allow root to log in. This has to be explicitly enabled on host_dest. This can be done by editing /etc/ssh/sshd_config and changing the option of PermitRootLogin from no to yes. Don't forget to restart sshd so that it reads the modified config file. Do this only if you want to use the root login.
Well, thats it. Now you can run scp, ssh and rsync on host_src connecting to host_dest and it won't prompt for the password. Note that this will still prompt for the password if you are running the commands on host_dest connecting to host_src. You can reverse the steps above (generate the public key on host_dest and copy it to host_src) and you have a two way setup ready!

mardi 22 février 2011

En s'attaquant frontalement à Office, Google "coupe les ailes" de Microsoft.


On voit sans ambages que Microsoft tire la majorité de ses profits par Office:

Cloud : les freins ne sont plus technologiques, mais psychologiques

Cloud : les freins ne sont plus technologiques, mais psychologiques

Selon un livre blanc "Accélérer la réussite du cloud hybride et ajuster les mentalités" publié par IDC pour VMware, ce sont les mentalités au sein des départements informatiques et non le manque de confiance dans la technologie qui pourraient freiner l'adoption du Cloud public. IDC prévoit pourtant que les deux prochaines années marqueront un tournant dans l'adoption du Cloud en Europe. Une entreprise sur trois voit aujourd'hui cette technologie comme une composante essentielle de sa stratégie informatique. Selon le cabinet, ce marché atteindra dans la région EMEA 18,8 milliards de dollars en 2014.

lire la suite ...

PaaS : une plate-forme à votre service ? - Journal du Net Solutions

PaaS : une plate-forme à votre service ? - Journal du Net Solutions

La montée en puissance des offres de Platform as a Service appelle à repenser la consommation des logiciels informatiques en entreprise. Quelques éléments d'explication sur cette technique.

Que signifie l'acronyme PaaS ?

PaaS signifie Platform as a Service. Le terme PaaS aurait été forgé par le cabinet Saugatuck Technology. Il fait suite logiquement à l'acronyme SaaS (Software as a service), utilisé pour définir les logiciel disponibles à la demande via une interface Web par exemple, et proposés par des prestataires en alternative aux progiciels classiques qui requièrent une installation chez le client.

Lire la suite...

PaaS : une plate-forme à votre service ? - Journal du Net Solutions

lundi 21 février 2011

Debian 6: First Impressions | Linux Magazine

Debian 6: First Impressions | Linux Magazine

Did Debian have a contest to redesign its graphics and it wasn’t made public? Did a third grader win that contest? Oh, the hallowed Debian developers must have had a fashion faux pas moment when deciding on a new look because this one makes me think it was designed for children or by children. It’s a good thing that once you’ve installed the operating system, you can change that horrid desktop background to something less kitchy. Other than the graphical goofs, Debian 6 is Debian and that’s a good thing.

The setup used for this article is a VirtualBox virtual machine with 512MB RAM, an 8GB dynamically expanding hard disk, and Debian 6.0.0 amd64 netinstall.

read more ...>

dimanche 20 février 2011

ISAE Cnam Liban

The Cnam Liban is commited using open source solutions for all the courses (Modeling, programming, tools, OS, ...) in Lebanon. visit the folowing blog http://www.cofares.net/ about the computer science community.

dimanche 13 février 2011

Nokia s’allie à Microsoft pour gagner la guerre des smartphones | LeMatin.ch

Nokia s’allie à Microsoft pour gagner la guerre des smartphones | LeMatin.ch: "– Envoyé à l'aide de la barre d'outils Google"

Stephen Elop a expliqué que l’option Google avait été envisagée, mais que Nokia aurait eu de la peine à tirer son épingle du jeu face à Android en position forte. C’est donc Microsoft qui a semblé le meilleur choix pour mener le combat dans ce marché serré. Quelques jours plus tôt, le patron de Nokia avait utilisé l’analogie d’un homme sur une plate-forme en feu qui, pour survivre, se jette dans l’eau glacée, ce qui est un choix impensable en situation normale. De même, s’allier avec Microsoft n’aurait jamais été à l’ordre du jour si Nokia avait trouvé à temps une alternative à la déferlante Apple/Google.

Malgré le discours enthousiaste des deux patrons sur scène à Londres, les analystes ne sont pas tombés sous le charme. Vendredi, juste après l’annonce, la cote en Bourse de Nokia a dégringolé de plus de 10%.


Nokia s’allie à Microsoft pour gagner la guerre des smartphones | LeMatin.ch: "– Envoyé à l'aide de la barre d'outils Google"