<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>SshKerberos</title><revhistory><revision><revnumber>19</revnumber><date>2012-10-31 22:21:43</date><authorinitials>RokSosic</authorinitials></revision><revision><revnumber>18</revnumber><date>2012-09-28 03:58:36</date><authorinitials>netj</authorinitials><revremark>Added SSH+Kerberos for Mac, OS X</revremark></revision><revision><revnumber>17</revnumber><date>2012-08-10 01:16:22</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>16</revnumber><date>2012-08-10 01:09:42</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>15</revnumber><date>2012-08-10 01:05:20</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>14</revnumber><date>2012-08-10 01:05:15</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>13</revnumber><date>2012-08-09 22:48:01</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>12</revnumber><date>2012-08-09 22:18:17</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>11</revnumber><date>2012-08-09 22:15:09</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>10</revnumber><date>2012-08-09 22:14:45</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>9</revnumber><date>2012-08-09 22:14:26</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>8</revnumber><date>2012-08-09 22:14:08</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>7</revnumber><date>2012-08-09 22:05:08</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>6</revnumber><date>2012-08-09 22:04:51</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>5</revnumber><date>2012-08-09 21:56:47</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>4</revnumber><date>2012-08-09 21:38:14</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-08-09 21:34:33</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-08-09 21:33:48</date><authorinitials>akrevl</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-08-09 21:27:58</date><authorinitials>akrevl</authorinitials></revision></revhistory></articleinfo><section><title>SSH and Kerberos</title><para>This page describes how to tackle the issue of CS managed machines (e.g. hulk and rocky) not allowing you to login without a password via SSH. </para><para>Please note that all the tools are already configured on <ulink url="http://snap.stanford.edu/moin/SshKerberos/moin/Bruce#">Bruce</ulink>, <ulink url="http://snap.stanford.edu/moin/SshKerberos/moin/Rambo#">Rambo</ulink> and <ulink url="http://snap.stanford.edu/moin/SshKerberos/moin/Zarya#">Zarya</ulink>. </para><section><title>1. Configure your OS</title><itemizedlist><listitem><para>Configure CentOS 6: <ulink url="http://snap.stanford.edu/moin/SshKerberos/moin/SshKerberosCentos6#">SshKerberosCentos6</ulink> </para></listitem><listitem><para>Configure CentOS 5: <ulink url="http://snap.stanford.edu/moin/SshKerberos/moin/SshKerberosCentos5#">SshKerberosCentos5</ulink> </para></listitem><listitem><para>Configure Mac OS X: <ulink url="http://snap.stanford.edu/moin/SshKerberos/moin/SshKerberosMac#">SshKerberosMac</ulink> </para></listitem><listitem><para>More OSs coming soon... </para></listitem></itemizedlist></section><section><title>2. Use the Kerberos tools</title><section><title>Get a ticket</title><para>Whenever you would like to log in to CS managed machines (e.g. hulk, rocky) just open a terminal and enter: </para><screen><![CDATA[kinit your_cs_id]]></screen><para>This command will ask you for the password of <emphasis>your_cs_id</emphasis> and obtain a Kerberos ticket for the account <emphasis>your_cs_id</emphasis>. Now you can login to the CS managed machines without using a password (provided that you are logging in as <emphasis>your_cs_id</emphasis>, of course). </para><para>If you would like to manually specify the lifetime of the Kerberos ticket, you can do it with the -l switch: </para><screen><![CDATA[kinit -l 30d your_cs_id]]></screen><para>The command above will issue a ticket with a lifetime of 30 days for the username johns. </para><para>You can obtain a ticket for any username if you have a password for that usename (so my username is <emphasis>js</emphasis> on the local machine I can still obtain the ticket for my johns CS account). </para></section><section><title>Listing your tickets</title><para>You can list all of the tickets that you currently posses with the klist command: </para><screen><![CDATA[klist]]></screen></section><section><title>Deleting tickets</title><para>There may be a case when you do not need the Kerberos ticket any more and you want to delete. No problem, you can do this: </para><screen><![CDATA[kdestroy]]></screen></section></section></section></article>