Feb 10, 2013

Create a repo file for yum

You can see yum repo files in this location.

cd /etc/yum.repo.d/

Create a new file with the extention .repo.

touch local.repo

The open it using vim and add these lines.

[local]
name=my local repo
baseurl=http://example.com/...
pgpcheck=0

Feb 9, 2013

SSH with no password

On client:

First check that the user have almost generate a public and a private key pair. To do that;

ls ~/.ssh/

If there is a key do not try to regenerate keys.

If there is no "id_*" in that location you need to genarate a key pair by;

ssh-keygen

Then you need to copy your public key to the server. To do that you can use this command.

ssh-copy-id user@server

If this process sucessfully completes you can do ssh without giving your password.

ssh user@server

Now this will connect to the server without asking the password.