Blog

Viewing posts by senex

Mezzanine Upgrade

Posted by: senex 6 years, 7 months ago

Upgraded from mezzanine 0.8.5 to 0.10.1. Things look great! Now if only I could put some content :)

read more / Comments

SSH Keys HOWTO

Posted by: senex in HOWTO 11 years, 2 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 11 years, 2 months ago

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

read more / Comments

Search

Recent Posts

Archive

2016
2014
2013
2012
2011
2006

Categories

Authors

Feeds

RSS / Atom

Menu