welcome: please sign in

Diff for "MemberManual/ShellAccess/PasswordlessLogin"

Differences between revisions 13 and 14
Revision 13 as of 2007-11-12 04:14:58
Size: 1686
Editor: MichaelOlson
Comment: Make part of member manual
Revision 14 as of 2007-11-12 04:23:25
Size: 2020
Editor: MichaelOlson
Comment: Overhaul
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from PasswordlessLogin
== How to log in to mire without typing your password ==
Zeroth, you must have openssh client 4.3 or later. Other versions may work, but we make no guarantees. You will also want the {{{krb5-user}}} package if you are using Debian or Ubuntu.
#pragma section-numbers off
Line 5: Line 3:
Then, you must obtain kerberos tickets. If your username is "fred", you would do this by typing This page explains how to log in to our servers without having to type in a password.

[[TableOfContents]]

= Prerequisites =

You must have openssh client 4.3 or later. Other versions may work, but we make no guarantees. You will also want the {{{krb5-user}}} package if you are using Debian or Ubuntu. For further details, check out [MemberManual/TransferringFiles/OpenAFS], and follow just the Kerberos instructions.

= Instructions =

Once a Kerberos client hsa been installed, you must obtain Kerberos tickets. If your username is "fred", you would do this by typing:
Line 8: Line 16:
   kinit fred@HCOOP.NET kinit fred@HCOOP.NET
Line 10: Line 18:
Then type your password when prompted. Note that you MUST capitalize HCOOP.NET and you MUST NOT capitalize your user name. This is important.
Then type your password when prompted. Note that you '''must''' capitalize HCOOP.NET and you '''must not''' capitalize your user name. This is important.
Line 15: Line 24:
   klist klist
Line 17: Line 26:
Line 22: Line 32:
   ssh -o 'GSSAPIAuthentication yes' -o 'GSSAPIDelegateCredentials yes' fred@mire.hcoop.net ssh -o 'GSSAPIAuthentication yes' -o 'GSSAPIDelegateCredentials yes' fred@mire.hcoop.net
Line 24: Line 34:
Line 28: Line 39:
If you do this a lot, you can include the `GSSAPIAuthentication` and `GSSAPIDelegateCredentials` options in your `.ssh/config` file. But you should NOT turn on `GSSAPIDelegateCredentials` for arbitrary hosts (make sure you only enable it for HCOOP hosts).  Here's what AdamMegacz uses: = Automating things =

If you do this a lot, you can include the `GSSAPIAuthentication` and `GSSAPIDelegateCredentials` options in your `~/.ssh/config` file. But you should NOT turn on `GSSAPIDelegateCredentials` for arbitrary hosts (make sure you only enable it for HCOOP hosts).

Here is an example entry for `~/.ssh/config`:
Line 31: Line 46:
Host deleuze.hcoop.net
  ForwardX11Trusted yes
Host mire.hcoop.net
Line 35: Line 49:
  User megacz_admin
Host mire.hcoop.net
  ForwardX11Trusted yes
  GSSAPIAuthentication yes
  GSSAPIDelegateCredentials yes
  User megacz_admin
  User fred
Line 42: Line 51:
== If it doesn't work ==
See TroubleshootingKerberos

This will allow you to type the following, instead of the longer command above.

{{{
ssh fred@mire.hcoop.net
}}}

= If it doesn't work =

See the [:MemberManual/ShellAccess/TroubleshootingKerberos:Troubleshooting Kerberos] page if you run into any problems.

This page explains how to log in to our servers without having to type in a password.

TableOfContents

Prerequisites

You must have openssh client 4.3 or later. Other versions may work, but we make no guarantees. You will also want the krb5-user package if you are using Debian or Ubuntu. For further details, check out [MemberManual/TransferringFiles/OpenAFS], and follow just the Kerberos instructions.

Instructions

Once a Kerberos client hsa been installed, you must obtain Kerberos tickets. If your username is "fred", you would do this by typing:

kinit fred@HCOOP.NET

Then type your password when prompted. Note that you must capitalize HCOOP.NET and you must not capitalize your user name. This is important.

Next, make sure you have your tickets. To do this, type

klist

You should see your tickets and their expiration dates.

Last, type

ssh -o 'GSSAPIAuthentication yes' -o 'GSSAPIDelegateCredentials yes' fred@mire.hcoop.net

(GSSAPI is sort of like Kerberos. Don't worry about the difference at this point.)

If that doesn't work, add "-vvv" to the command line and copy and paste the ENTIRE output into an email to hcoop-discuss and we'll tell you what's up.

Automating things

If you do this a lot, you can include the GSSAPIAuthentication and GSSAPIDelegateCredentials options in your ~/.ssh/config file. But you should NOT turn on GSSAPIDelegateCredentials for arbitrary hosts (make sure you only enable it for HCOOP hosts).

Here is an example entry for ~/.ssh/config:

Host mire.hcoop.net
  GSSAPIAuthentication yes
  GSSAPIDelegateCredentials yes
  User fred

This will allow you to type the following, instead of the longer command above.

ssh fred@mire.hcoop.net

If it doesn't work

See the [:MemberManual/ShellAccess/TroubleshootingKerberos:Troubleshooting Kerberos] page if you run into any problems.

MemberManual/ShellAccess/PasswordlessLogin (last edited 2021-10-17 03:04:21 by RobinTempleton)