Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Thursday, May 24, 2012

Instead of Samba use Centrify

I've used samba for a long time and love it, but I ran into a product called Centrify that is so easy to setup and use for kerberos authentication against a Windows Active Directory that I don't think I'm going back to samba.

Here is a very brief explanation of how I set it up on my Linux Server.


Download Centrify Suite and the centrify samba package.

1. Uninstall your current ssh and samba.
2. Login as "root"
3. Extract the files.
4. Run "install-express.sh"
5. Answer all the questions.
6.  Reboot.
7.  Install the samba packages.


Make the following changes in /etc/centrify/centrifydc.conf file.
Change the shell from /bin/bash to /bin/ksh
Change the auto.schema.primary.gid: 100
Change the auto.schema.private.group: false

Create a group.ovr file in /etc/centrify/  Add the following line:
+domain users:users:::

Thursday, April 26, 2012

Use secure keys to login automatically from windows



1. Using Putty login as the user you want to create the key.
2. type ssh-keygen –t rsa.


3. Now this will create two files id_rsa and id_rsa.pub under ~/.ssh
4. Now copy the id_rsa file (Private Key) to your document directory on your windows computer.
5. Use the Putty Key Generator program (right click on putty) that comes with Putty to import this file. (See step 6).



6. In the Putty Key Generator program click “Conversions”, then “import key” and choose the file id_rsa that  is in your document directory from step 4.
7. This is what it will look like.



8. Now copy the entire content of the big red box and paste it into a file in notepad, then save the file as “PuttyKey.
9. Copy the new file “PuttyKey” to the user’s home/.ssh directory on the Linux Server.
10. From the user’s home/.ssh directory on the Linux Server run this command.  “cat PuttyKey > authorized_keys”
11. Change permission on authorized_keys to 644.  “chmod 644 authorized_keys”










Now let’s get dl4term to use the Identity keys.


1. Open up dl4term.
2. Go to scripting and create a new script with these settings:











































3. Now click on SSH Options and browse to the id_rsa file that you saved on your computer in step 4











4. Give the script a name.  I called mine Login-SSH, now click “Save Script”.
5. Right click on the dl4term icon and choose properties.






6. Next to the last double quotes type in the name of the script you created.











































7. Now when you double click on dl4term it will automatically log you in.


-Jeff