Blog

Viewing posts for the category HOWTO

Setup Mercurial server with multiple repositories on OpenSUSE

Posted by: senex in HOWTO 12 years, 9 months ago

This tutorial is to configure a Mercurial/hg server for multiple repositories on OpenSUSE.  Be sure to follow these steps on the server you want to host the repositories on.

read more / Comments

SSH Keys HOWTO

Posted by: senex in HOWTO 18 years, 5 months ago

To log into a remote machine from a local machine

   1. Check your home directory in the local machine for a .ssh directory. If it's there, look inside for a file named identity.pub or id_rsa.pub. If neither exists, type ssh-keygen -t rsa
      Just press enter for passphrase, unless you want one. This creates a 1024 bit RSA version 2 keypair (other options for other types) in $HOME/.ssh/identity and $HOME/.ssh/identity.pub, OR in $HOME/.ssh/id_rsa and $HOME/.ssh/id_rsa.pub

   2. Put a copy of identity.pub or id_rsa.pub (whichever you have) into your home directory on the remote machine:
      scp $HOME/.ssh/identity.pub user@remote.machine.com:.
      (note the ending dot on the line above, it means "same filename")

   3. ssh into the remote box with a password, then do this:
      Check to see if you have a .ssh directory there. If not,
      mkdir .ssh
      chmod 750 .ssh

   4. If there is no file in the .ssh directory named authorized keys:
      cp identity.pub .ssh/authorized_keys
      or
      cp id_rsa.pub .ssh/authorized_keys
      chmod 600 .ssh/authorized_keys

      If .ssh/authorized_keys already exists: cat identity.pub >> .ssh/authorized_keys or
      cat id_rsa.pub >> .ssh/authorized_keys

   5. Now log out of the remote machine and ssh into it again. You should be logged into your account on the remote machine without having to type a password.

read more / Comments

linux disk copy

Posted by: senex in HOWTO 18 years, 5 months ago

To copy from one disk to another and preserve permissions do the following:

read more / Comments

Recent Posts

Archive

2016
2014
2013
2012
2011
2006

Categories

Authors

Feeds

RSS / Atom

Menu